WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/15/2020 11:21:23 AM (16 months ago)
Author:
SergeyBiryukov
Message:

Docs: Link to add_theme_support() for the list of supported theme features in current_theme_supports() and related functions.

Props stevenlinx.
Fixes #50657.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r48189 r48490  
    24742474 * @global array $_wp_theme_features
    24752475 *
    2476  * @param string $feature The feature being added. Likely core values include 'post-formats',
    2477  *                        'post-thumbnails', 'html5', 'custom-logo', 'custom-header',
    2478  *                        'custom-background', 'title-tag', 'starter-content',
    2479  *                        'responsive-embeds', etc.
     2476 * @param string $feature The feature being added. Likely core values include 'post-formats', 'post-thumbnails',
     2477 *                        'custom-header', 'custom-background', 'custom-logo', 'menus', 'automatic-feed-links',
     2478 *                        'html5', 'title-tag', 'customize-selective-refresh-widgets', 'starter-content',
     2479 *                        'responsive-embeds', 'align-wide', 'dark-editor-style', 'disable-custom-colors',
     2480 *                        'disable-custom-font-sizes', 'editor-color-palette', 'editor-font-sizes',
     2481 *                        'editor-styles', and 'wp-block-styles'.
    24802482 * @param mixed  ...$args Optional extra arguments to pass along with certain features.
    24812483 * @return void|bool False on failure, void otherwise.
     
    27792781
    27802782/**
    2781  * Gets the theme support arguments passed when registering that support
     2783 * Gets the theme support arguments passed when registering that support.
    27822784 *
    27832785 * Example usage:
     
    27922794 * @global array $_wp_theme_features
    27932795 *
    2794  * @param string $feature The feature to check.
     2796 * @param string $feature The feature to check. See add_theme_support() for the list
     2797 *                        of possible values.
    27952798 * @param mixed  ...$args Optional extra arguments to be checked against certain features.
    27962799 * @return mixed The array of extra arguments or the value for the registered feature.
     
    28302833 * @see add_theme_support()
    28312834 *
    2832  * @param string $feature The feature being removed.
     2835 * @param string $feature The feature being removed. See add_theme_support() for the list
     2836 *                        of possible values.
    28332837 * @return bool|void Whether feature was removed.
    28342838 */
     
    28522856 * @global Custom_Background   $custom_background
    28532857 *
    2854  * @param string $feature
     2858 * @param string $feature The feature being removed. See add_theme_support() for the list
     2859 *                        of possible values.
    28552860 * @return bool True if support was removed, false if the feature was not registered.
    28562861 */
     
    29182923 * @global array $_wp_theme_features
    29192924 *
    2920  * @param string $feature The feature being checked.
     2925 * @param string $feature The feature being checked. See add_theme_support() for the list
     2926 *                        of possible values.
    29212927 * @param mixed  ...$args Optional extra arguments to be checked against certain features.
    29222928 * @return bool True if the current theme supports the feature, false otherwise.
     
    29722978     * Filters whether the current theme supports a specific feature.
    29732979     *
    2974      * The dynamic portion of the hook name, `$feature`, refers to the specific theme
    2975      * feature. Possible values include 'post-formats', 'post-thumbnails', 'custom-background',
    2976      * 'custom-header', 'menus', 'automatic-feed-links', 'html5',
    2977      * 'starter-content', and 'customize-selective-refresh-widgets'.
     2980     * The dynamic portion of the hook name, `$feature`, refers to the specific
     2981     * theme feature. See add_theme_support() for the list of possible values.
    29782982     *
    29792983     * @since 3.4.0
     
    29912995 * @since 2.9.0
    29922996 *
    2993  * @param string $feature The feature being checked.
     2997 * @param string $feature The feature being checked. See add_theme_support() for the list
     2998 *                        of possible values.
    29942999 * @param string $include Path to the file.
    29953000 * @return bool True if the current theme supports the supplied feature, false otherwise.
     
    30153020 * @global $_wp_registered_theme_features
    30163021 *
    3017  * @param string $feature The name uniquely identifying the feature.
     3022 * @param string $feature The name uniquely identifying the feature. See add_theme_support()
     3023 *                        for the list of possible values.
    30183024 * @param array $args {
    30193025 *      Data used to describe the theme.
     
    31703176 * @global $_wp_registered_theme_features
    31713177 *
    3172  * @param string $feature The feature name.
     3178 * @param string $feature The feature name. See add_theme_support() for the list
     3179 *                        of possible values.
    31733180 * @return array|null The registration args, or null if the feature was not registered.
    31743181 */
Note: See TracChangeset for help on using the changeset viewer.