Changeset 48590 for trunk/src/wp-includes/theme.php
- Timestamp:
- 07/23/2020 09:09:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r48576 r48590 3024 3024 * @param string $feature The name uniquely identifying the feature. See add_theme_support() 3025 3025 * for the list of possible values. 3026 * @param array $args {3027 * 3028 * 3029 * 3030 * 3031 * 3032 * 3033 * 3034 * 3035 * 3036 * 3037 * 3038 * 3039 * 3040 * 3041 * 3042 * 3043 * 3044 * 3045 * 3046 * 3047 * 3048 * 3026 * @param array $args { 3027 * Data used to describe the theme. 3028 * 3029 * @type string $type The type of data associated with this feature. 3030 * Valid values are 'string', 'boolean', 'integer', 3031 * 'number', 'array', and 'object'. Defaults to 'boolean'. 3032 * @type boolean $variadic Does this feature utilize the variadic support 3033 * of add_theme_support(), or are all arguments specified 3034 * as the second parameter. Must be used with the "array" type. 3035 * @type string $description A short description of the feature. Included in 3036 * the Themes REST API schema. Intended for developers. 3037 * @type bool|array $show_in_rest { 3038 * Whether this feature should be included in the Themes REST API endpoint. 3039 * Defaults to not being included. When registering an 'array' or 'object' type, 3040 * this argument must be an array with the 'schema' key. 3041 * 3042 * @type array $schema Specifies the JSON Schema definition describing 3043 * the feature. If any objects in the schema do not include 3044 * the 'additionalProperties' keyword, it is set to false. 3045 * @type string $name An alternate name to be used as the property name 3046 * in the REST API. 3047 * @type callable $prepare_callback A function used to format the theme support in the REST API. 3048 * Receives the raw theme support value. 3049 3049 * } 3050 3050 * }
Note: See TracChangeset
for help on using the changeset viewer.