wp_get_theme_directory_pattern_slugs(): string[]

In this article

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

Return

string[]

Source

function wp_get_theme_directory_pattern_slugs() {
	return WP_Theme_JSON_Resolver::get_theme_data( array(), array( 'with_supports' => false ) )->get_patterns();
}

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

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