Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WP_Theme_JSON::has_properties() WordPress Method
The WP_Theme_JSON::has_properties() method is a utility function that checks if an object or array has any properties.
WP_Theme_JSON::has_properties( array $metadata ) #
Whether the metadata contains a key named properties.
Contents
Parameters
- $metadata
(array)(Required)Description of the style property.
Return
(bool) True if properties exists, false otherwise.
Source
File: wp-includes/class-wp-theme-json.php
* @param array $nodes Nodes with settings. * @param array $origins List of origins to process. * @return string The new stylesheet. */ protected function get_css_variables( $nodes, $origins ) { $stylesheet = ''; foreach ( $nodes as $metadata ) {
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |