Changeset 45422 for trunk/src/wp-includes/theme.php
- Timestamp:
- 05/25/2019 11:40:06 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r45418 r45422 2319 2319 * The {@see 'init'} hook may be too late for some features. 2320 2320 * 2321 * Example usage: 2322 * 2323 * add_theme_support( 'title-tag' ); 2324 * add_theme_support( 'custom-logo', array( 2325 * 'height' => 480, 2326 * 'width' => 720, 2327 * ) ); 2328 * 2321 2329 * @since 2.9.0 2322 2330 * @since 3.6.0 The `html5` feature was added … … 2637 2645 * Gets the theme support arguments passed when registering that support 2638 2646 * 2647 * Example usage: 2648 * 2649 * get_theme_support( 'custom-logo' ); 2650 * get_theme_support( 'custom-header', 'width' ); 2651 * 2639 2652 * @since 3.1.0 2640 2653 * … … 2642 2655 * 2643 2656 * @param string $feature The feature to check. 2657 * @param mixed ...$args Optional extra arguments to be checked against certain features. 2644 2658 * @return mixed The array of extra arguments or the value for the registered feature. 2645 2659 */ … … 2752 2766 * Checks a theme's support for a given feature. 2753 2767 * 2768 * Example usage: 2769 * 2770 * current_theme_supports( 'custom-logo' ); 2771 * current_theme_supports( 'html5', 'comment-form' ); 2772 * 2754 2773 * @since 2.9.0 2755 2774 * … … 2757 2776 * 2758 2777 * @param string $feature The feature being checked. 2778 * @param mixed ...$args Optional extra arguments to be checked against certain features. 2759 2779 * @return bool True if the current theme supports the feature, false otherwise. 2760 2780 */
Note: See TracChangeset
for help on using the changeset viewer.