apply_filters( ‘default_category_post_types’, string[] $post_types )

In this article

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

Parameters

$post_typesstring[]
An array of post type names. Default empty array.

Source

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

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.