Inventory_Presser_Blocks::add_category( array $block_categories )
Adds a block category to hold all our blocks
On This Page
Parameters Parameters
- $block_categories
-
(array) (Required)
Return Return
(array)
Source Source
File: includes/class-blocks.php
public function add_category( $block_categories ) {
return array_merge(
$block_categories,
array(
array(
'slug' => 'inventory-presser',
'title' => __( 'Inventory Presser', 'inventory-presser' ),
'icon' => 'dashicons-admin-network', // it's a key.
),
)
);
}
Expand full source codeCollapse full source codeView on Github