default_category_post_types

最后更新于:2021-11-26 04:31:20

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

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

参数

$post_types

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

源文件

文件: gc-includes/post.php

View on Trac