LLMS_Blocks::add_block_category( array $categories )
Add a custom LifterLMS block category
Parameters Parameters
- $categories
-
(array) (Required) existing block cats.
Return Return
(array)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks.php
/** * Add a custom LifterLMS block category * * @since 1.0.0 * @since 1.6.0 Add Form Fields category. * * @param array $categories existing block cats. * @return array */ public function add_block_category( $categories ) { $categories[] = array( 'slug' => 'llms-blocks', 'title' => __( 'LifterLMS Blocks', 'lifterlms' ), ); array_unshift( $categories, array( 'slug' => 'llms-custom-fields', 'title' => __( 'Custom User Information', 'lifterlms' ), ) ); array_unshift(
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.6.0 | Add Form Fields category. |
1.0.0 | Introduced. |