WP_Theme_JSON::get_patterns(): string[]

In this article

Returns the current theme’s wanted patterns(slugs) to be registered from Pattern Directory.

Return

string[]

Source

* We rather replace the existing with the incoming value, if it exists.
* This is the case of spacing.units.
*
* For leaf values that are associative arrays it will merge them as expected.
* This is also not the behavior we want for the current associative arrays (presets).
* We rather replace the existing with the incoming value, if it exists.

Changelog

VersionDescription
6.0.0Introduced.

User Contributed Notes

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