apply_filters( 'default_category_post_types', string[] $post_types )
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
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/default_category_post_types