Browse: Home / Functions /

learndash_block_categories

learndash_block_categories( array $block_categories = array(),  WP_Post|false $post = false )

Registers a custom block category.


Description #

Fires on block_categories hook.


Parameters #

$block_categories

(array) (Optional) An array of current block categories.

Default value: array()

$post

(WP_Post|false) (Optional) The WP_Post instance of post being edited.

Default value: false


Return #

(array) An array of block categories.


Source #

File: includes/gutenberg/lib/enqueue-scripts.php


Changelog #

Changelog
Version Description
2.6.0 Introduced.