Browse: Home / Functions /


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

Registers a custom block category.

Description #

Fires on block_categories hook.

Parameters #


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

Default value: array()


(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 #

Version Description
2.6.0 Introduced.