WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about default_category_post_types

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post.php apply_filters 5295 /**
* Filters post types (in addition to 'post') that require a default category.
*
* @since 5.5.0
*
* @param string[] $post_types An array of post type names. Default empty array.
*/

Hook Parameters

Parameter Type Name Description
string[] $post_types An array of post type names. Default empty array.