transition_comment_status

动作钩子


do_action( 'transition_comment_status', $new_status, $old_status, $comment )
参数
  • (int|string)
    $new_status
    The new comment status.
    Required:
  • (int|string)
    $old_status
    The old comment status.
    Required:
  • (WP_Comment)
    $comment
    Comment object.
    Required:
定义位置
  • wp-includes/comment.php
    , line 1796
引入
2.7.0
弃用

Fires when the comment status is in transition.

do_action( 'transition_comment_status', $new_status, $old_status, $comment );