WP_Theme_JSON::filter_slugs( array $node, array $slugs ): array

In this article

Removes the preset values whose slug is equal to any of given slugs.

Parameters

$nodearrayrequired
The node with the presets to validate.
$slugsarrayrequired
The slugs that should not be overridden.

Return

array The new node.

Source


	return $filters;
}

/**
 * Determines whether a presets should be overridden or not.
 *
 * @since 5.9.0
 * @deprecated 6.0.0 Use 'get_metadata_boolean' instead.
 *
 * @param array      $theme_json The theme.json like structure to inspect.
 * @param array      $path       Path to inspect.
 * @param bool|array $override   Data to compute whether to override the preset.
 * @return bool

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

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