1. 首页
  2. WordPress钩子手册

close_comments_for_post_types

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

过滤器::过滤要自动关闭评论的文章类型列表。
Filter Hook: Filters the list of post types to automatically close comments for.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$post_types (string[]) post类型名称的数组。

源码(Source)


更新版本 源码位置 使用 被使用
3.2.0 wp-includes/comment.php:3119 2 0

close_comments_for_post_types 为WP2原创文章,链接:https://www.wp2.cn/hook/close_comments_for_post_types/