wp_get_theme_directory_pattern_slugs()
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 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(); }