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

$spacing_scale = _wp_array_get( $incoming_data, $scale_path, null );
if ( ! isset( $spacing_scale ) ) {
	continue;
}

// Allow partial scale settings by merging with lower layers.

Changelog

VersionDescription
6.0.0Introduced.

User Contributed Notes

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