Inventory_Presser_Blocks::add_category( array $block_categories, WP_Block_Editor_Context $block_editor_context )

Adds a block category to hold all our blocks


Parameters

$block_categories

(array) (Required)

$block_editor_context

(WP_Block_Editor_Context) (Required)


Return

(array)


Source

File: includes/class-blocks.php

	public function add_category( $block_categories, $block_editor_context ) {
		return array_merge(
			$block_categories,
			array(
				array(
					'slug'  => 'inventory-presser',
					'title' => __( 'Inventory Presser', 'inventory-presser' ),
					'icon'  => 'dashicons-admin-network', // it's a key.
				),
			)
		);
	}