get_block_categories


get_block_categories ( $editor_name_or_post )

Parameters:
  • (string|WP_Post) editor_name_or_post The name of the editor (e.g. 'post-editor') or the post object.
Returns:
  • (array[]) Array of categories for block types.
Defined at:

Description

Returns all the categories for block types that will be shown in the block editor.

Related Functions

get_default_block_categories, get_categories, register_block_core_categories, wp_get_post_categories, get_all_category_ids

Top Google Results

User discussions

wpseek mobile