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() WordPress Method

The WP_Theme_JSON::has_properties() method is a utility function that checks if an object or array has any properties.

WP_Theme_JSON::has_properties( array $metadata ) #

Whether the metadata contains a key named properties.


Parameters

$metadata

(array)(Required)Description of the style property.


Top ↑

Return

(bool) True if properties exists, false otherwise.


Top ↑

Source

File: wp-includes/class-wp-theme-json.php

	 * @param array $nodes   Nodes with settings.
	 * @param array $origins List of origins to process.
	 * @return string The new stylesheet.
	 */
	protected function get_css_variables( $nodes, $origins ) {
		$stylesheet = '';
		foreach ( $nodes as $metadata ) {

Top ↑

Changelog

Changelog
VersionDescription
5.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.