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

 */
protected static function append_to_selector( $selector, $to_append ) {
	if ( ! str_contains( $selector, ',' ) ) {
		return $selector . $to_append;
	}
	$new_selectors = array();
	$selectors     = explode( ',', $selector );

Changelog

VersionDescription
5.8.0Introduced.

User Contributed Notes

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