WP_Theme_JSON::has_properties( array $metadata )

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

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

		return false;
	}

Changelog

Version Description
5.8.0 Introduced.

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