wordpress / latest / classes / wp_theme_json / has_properties.html

WP_Theme_JSON::has_properties( array $metadata ): bool

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.

Whether the metadata contains a key named properties.

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. View all references

}

if ( in_array( 'presets', $types, true ) ) {
	$stylesheet .= $this->get_preset_classes( $setting_nodes, $origins );
}

return $stylesheet;

Changelog

Version Description
5.8.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties