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
if ( ! is_array( $terms ) ) {
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
Filters post types (in addition to ‘post’) that require a default category.
$post_types
string[]if ( ! is_array( $terms ) ) {
Version | Description |
---|---|
5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.