wpseek.com
A WordPress-centric search engine for devs and theme authors



default_category_post_types › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( 'default_category_post_types', array()
Parameters:
  • () post_types An array of post type names. Default empty array.
    Required: Yes
Defined at:
Codex:

Filters post types (in addition to 'post') that require a default category.





Source

$default_category_post_types = apply_filters( 'default_category_post_types', array() );