A WordPress-centric search engine for devs and theme authors



block_categories ›

Since5.0.0
Deprecatedn/a
apply_filters( 'block_categories', $default_categories, $post )
Parameters: (2)
  • (array) $default_categories Array of block categories.
    Required: Yes
  • (WP_Post) $post Post being loaded.
    Required: Yes
Defined at:
Codex:

Filter the default array of block categories.





Source

return apply_filters( 'block_categories', $default_categories, $post );