get_default_block_categories

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

WordPress Version: 6.3

/**
 * Block Editor API.
 *
 * @package WordPress
 * @subpackage Editor
 * @since 5.8.0
 */
/**
 * Returns the list of default categories for block types.
 *
 * @since 5.8.0
 * @since 6.3.0 Reusable Blocks renamed to Patterns.
 *
 * @return array[] Array of categories for block types.
 */
function get_default_block_categories()
{
    return array(array('slug' => 'text', 'title' => _x('Text', 'block category'), 'icon' => null), array('slug' => 'media', 'title' => _x('Media', 'block category'), 'icon' => null), array('slug' => 'design', 'title' => _x('Design', 'block category'), 'icon' => null), array('slug' => 'widgets', 'title' => _x('Widgets', 'block category'), 'icon' => null), array('slug' => 'theme', 'title' => _x('Theme', 'block category'), 'icon' => null), array('slug' => 'embed', 'title' => _x('Embeds', 'block category'), 'icon' => null), array('slug' => 'reusable', 'title' => _x('Patterns', 'block category'), 'icon' => null));
}

WordPress Version: 5.8

/**
 * Block Editor API.
 *
 * @package WordPress
 * @subpackage Editor
 * @since 5.8.0
 */
/**
 * Returns the list of default categories for block types.
 *
 * @since 5.8.0
 *
 * @return array[] Array of categories for block types.
 */
function get_default_block_categories()
{
    return array(array('slug' => 'text', 'title' => _x('Text', 'block category'), 'icon' => null), array('slug' => 'media', 'title' => _x('Media', 'block category'), 'icon' => null), array('slug' => 'design', 'title' => _x('Design', 'block category'), 'icon' => null), array('slug' => 'widgets', 'title' => _x('Widgets', 'block category'), 'icon' => null), array('slug' => 'theme', 'title' => _x('Theme', 'block category'), 'icon' => null), array('slug' => 'embed', 'title' => _x('Embeds', 'block category'), 'icon' => null), array('slug' => 'reusable', 'title' => _x('Reusable Blocks', 'block category'), 'icon' => null));
}