comment_closed

动作钩子


do_action( 'comment_closed', $comment_post_id )
参数
  • (int)
    $comment_post_id
    Post ID.
    Required:
定义位置
  • wp-includes/comment.php
    , line 3513
引入
1.5.0
弃用

Fires when a comment is attempted on a post that has comments closed.

do_action( 'comment_closed', $comment_post_id );