unregister_block_pattern_category()
Unregisters a pattern category.
Хуков нет.
Возвращает
true|false
. True if the pattern category was unregistered with success and false otherwise.
Использование
unregister_block_pattern_category( $category_name );
- $category_name(строка) (обязательный)
- Pattern category name including namespace.
Список изменений
С версии 5.5.0 | Введена. |
Код unregister_block_pattern_category() unregister block pattern category WP 6.1.1
function unregister_block_pattern_category( $category_name ) { return WP_Block_Pattern_Categories_Registry::get_instance()->unregister( $category_name ); }