WP_Theme_JSON::filter_slugs( array $node, array $slugs ): array
Removes the preset values whose slug is equal to any of given slugs.
Parameters
-
$node
array Required -
The node with the presets to validate.
-
$slugs
array Required -
The slugs that should not be overridden.
Return
array The new node.
Source
File: wp-includes/class-wp-theme-json.php
.
View all references
}
return null;
}
/**
* Removes the preset values whose slug is equal to any of given slugs.
*
* @since 5.9.0
*
* @param array $node The node with the presets to validate.
* @param array $slugs The slugs that should not be overridden.
* @return array The new node.
*/
protected static function filter_slugs( $node, $slugs ) {
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |