Custom Block Library Categories

This code will add additional categories into oxygen block library

add_action('plugins_loaded', 'oxygen_custom_block_categories');

function oxygen_custom_block_categories() {
    global $ct_component_categories;
	$newcategories =  array('Seperators','Crazy stuff','Awesomes');
	$ct_component_categories = array_merge($ct_component_categories, $newcategories);
	sort($ct_component_categories); // sort by name
}

// newsletter

Three tested WordPress snippets a week

Blocks, security, performance, Tailwind, PHP and React. Copy, paste, ship. You’ll also get DPlugins product updates. No spam, and you can unsubscribe anytime.

// newsletter

Three tested WordPress snippets a week

Blocks, security, performance, Tailwind, PHP and React. Copy, paste, ship. You'll also get DPlugins product updates. No spam, and you can unsubscribe anytime.