wpseek.com
WordPress开发者和主题制作者的搜索引擎
comment_{$new_status}_{$comment->comment_type} › WordPress动作钩子
Since2.7.0
已弃用n/a
› do_action( "comment_{$new_status}_{$comment->comment_type}", $comment->comment_ID, $comment )
参数: (2) |
|
定义在: |
|
文档: |
Fires when the status of a specific comment type is in transition.
The dynamic portions of the hook name, $new_status
, and $comment->comment_type
,
refer to the new comment status, and the type of comment, respectively.
Typical comment types include 'comment', 'pingback', or 'trackback'.
Possible hook names include:
comment_approved_comment
comment_approved_pingback
comment_approved_trackback
comment_unapproved_comment
comment_unapproved_pingback
comment_unapproved_trackback
comment_spam_comment
comment_spam_pingback
comment_spam_trackback
Related Functions: _wp_batch_update_comment_type, get_comment_type, feed_content_type, post_comment_meta_box_thead, wp_update_comment_count, wp_update_comment_count_now