wp_get_theme_directory_pattern_slugs()WP 6.3.0

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

No Hooks.

Return

String[].

Usage

wp_get_theme_directory_pattern_slugs();

Changelog

Since 6.3.0 Introduced.

wp_get_theme_directory_pattern_slugs() code WP 6.5.4

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