WP_Theme_JSON::has_properties( array $metadata ): bool

In this article

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

$metadataarrayrequired
Description of the style property.

Return

bool True if properties exists, false otherwise.

Source


/**
 * Sanitizes the input according to the schemas.
 *
 * @since 5.8.0
 * @since 5.9.0 Added the `$valid_block_names` and `$valid_element_name` parameters.
 * @since 6.3.0 Added the `$valid_variations` parameter.

Changelog

VersionDescription
5.8.0Introduced.

User Contributed Notes

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