wpseek.com
WordPress开发者和主题制作者的搜索引擎



close_comments_for_post_types › WordPress过滤钩子

Since3.2.0
已弃用n/a
apply_filters( 'close_comments_for_post_types', array( 'post' )
参数:
  • (string[]) $post_types An array of post type names.
    Required: Yes
定义在:
文档:

Filters the list of post types to automatically close comments for.





源码

$post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) );