wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_get_theme_directory_pattern_slugs › WordPress Function

Since6.3.0
Deprecatedn/a
wp_get_theme_directory_pattern_slugs ( No parameters )
Returns:
  • (string[])
Defined at:
Codex:

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



Source

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