Filters post types (in addition to ‘post’) that require a default category.
Parameters
$post_types
string[]- An array of post type names. Default empty array.
Source
$default_category_post_types = apply_filters( 'default_category_post_types', array() );
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.