WordPress at Your Fingertips
function is not described

WP_Theme_JSON::has_properties() private WP 5.8.0

Whether the metadata contains a key named properties.

{} It's a method of the class: WP_Theme_JSON{}

No Hooks.

Return

true|false. True if properties exists, false otherwise.

Usage

$result = WP_Theme_JSON::has_properties( $metadata );
$metadata(array) (required)
Description of the style property.

Changelog

Since 5.8.0 Introduced.

Code of WP_Theme_JSON::has_properties() WP 5.8.2

private static function has_properties( $metadata ) {
	if ( array_key_exists( 'properties', $metadata ) ) {
		return true;
	}

	return false;
}