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.
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
$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;
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |