apply_filters( 'default_category_post_types', string[] $post_types )

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


Parameters Parameters

$post_types

(string[]) An array of post type names. Default empty array.


Top ↑

Source Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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