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( array $metadata ): bool

Whether the metadata contains a key named properties.


$metadata array Required
Description of the style property.

Top ↑


bool True if properties exists, false otherwise.

Top ↑


File: wp-includes/class-wp-theme-json.php. View all references

$duotone_selector = wp_get_block_css_selector( $block_type, 'filter.duotone' );

// Keep backwards compatibility for support.color.__experimentalDuotone.
if ( null === $duotone_selector ) {
	$duotone_support = isset( $block_type->supports['color']['__experimentalDuotone'] )
		? $block_type->supports['color']['__experimentalDuotone']
		: null;

Top ↑


Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.