LLMS_Blocks::add_block_category( array $categories )

Add a custom LifterLMS block category


Parameters Parameters

$categories

(array) (Required) existing block cats.


Top ↑

Return Return

(array)


Top ↑

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(

Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Add Form Fields category.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.