unregister_block_pattern_category

The timeline below displays how wordpress function unregister_block_pattern_category has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.8

/**
 * Unregisters a pattern category.
 *
 * @since 5.5.0
 *
 * @param string $category_name Pattern category name including namespace.
 * @return bool True if the pattern category was unregistered with success and false otherwise.
 */
function unregister_block_pattern_category($category_name)
{
    return WP_Block_Pattern_Categories_Registry::get_instance()->unregister($category_name);
}

WordPress Version: 5.5

/**
 * Unregisters a pattern category.
 *
 * @since 5.5.0
 *
 * @param string $category_name       Pattern category name including namespace.
 * @return bool True if the pattern category was unregistered with success and false otherwise.
 */
function unregister_block_pattern_category($category_name)
{
    return WP_Block_Pattern_Categories_Registry::get_instance()->unregister($category_name);
}