wp_get_theme_directory_pattern_slugs()WP 6.3.0

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

Хуков нет.

Возвращает

Строку[].

Использование

wp_get_theme_directory_pattern_slugs();

Список изменений

С версии 6.3.0 Введена.

Код wp_get_theme_directory_pattern_slugs() WP 6.6.2

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