get_block_categories


get_block_categories ( $post )

Parameters:
  • (WP_Post) $post Post object.
Returns:
  • (array) Array of block categories.
Defined at:

Description

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

Related Functions

get_categories, wp_get_post_categories, register_block_core_categories, get_all_category_ids, render_block_core_categories

Top Google Results

User discussions

wpseek mobile