wpseek.com
WordPress开发者和主题制作者的搜索引擎



transition_comment_status › WordPress动作钩子

Since2.7.0
已弃用n/a
do_action( 'transition_comment_status', $new_status, $old_status, $comment )
参数: (3)
  • (int|string) $new_status The new comment status.
    Required: Yes
  • (int|string) $old_status The old comment status.
    Required: Yes
  • (WP_Comment) $comment Comment object.
    Required: Yes
定义在:
文档:

Fires when the comment status is in transition.





源码

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