在评论发布之前触发。
原型
do_action( 'pre_comment_on_post', int $comment_post_ID )
参数
$comment_post_ID
(int)
帖子ID。
源文件
路径:wp-includes/comment.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/pre_comment_on_post/
在评论发布之前触发。
do_action( 'pre_comment_on_post', int $comment_post_ID )
$comment_post_ID
(int)
帖子ID。
路径:wp-includes/comment.php
英文文档:https://developer.wordpress.org/reference/hooks/pre_comment_on_post/
请在后台设置小工具!