Title: WP_Theme_JSON::has_properties
Published: July 20, 2021
Last modified: November 4, 2021

---

# WP_Theme_JSON::has_properties( array $metadata ): bool

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties/?output_format=md#wp--skip-link--target)

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Whether the metadata contains a key named properties.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties/?output_format=md#parameters)󠁿

 `$metadata`arrayrequired

Description of the style property.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties/?output_format=md#return)󠁿

 bool True if properties exists, false otherwise.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties/?output_format=md#source)󠁿

    ```php
     *
     * @since 5.9.0
     *
     * @param array $context The context to which the settings belong.
     */
    protected static function do_opt_in_into_settings( &$context ) {
    	foreach ( static::APPEARANCE_TOOLS_OPT_INS as $path ) {
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-theme-json.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-theme-json.php#L922)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L922-L928)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.8.0](https://developer.wordpress.org/reference/since/5.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_theme_json%2Fhas_properties%2F)
before being able to contribute a note or feedback.