在已关闭注释的帖子上尝试评论时触发。
原型
do_action( 'comment_closed', int $comment_post_ID )
参数
$comment_post_ID
(int)
帖子ID。
源文件
路径:wp-includes/comment.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/comment_closed/
在已关闭注释的帖子上尝试评论时触发。
do_action( 'comment_closed', int $comment_post_ID )
$comment_post_ID
(int)
帖子ID。
路径:wp-includes/comment.php
英文文档:https://developer.wordpress.org/reference/hooks/comment_closed/
请在后台设置小工具!