comment_on_password_protected
do_action( ‘comment_on_password_protected’, int $comment_post_ID )
操作挂钩:当试图对受密码保护的帖子发表评论时激发。
Action Hook: Fires when a comment is attempted on a password-protected post.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$comment_post_ID | (int) | 邮政编码。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.9.0 | wp-includes/comment.php:3308 | 1 | 0 |
comment_on_password_protected 为WP2原创文章,链接:https://www.wp2.cn/hook/comment_on_password_protected/