首页>文档>Wordpress开发文档>Wordpress 钩子>comment_{$new_status}_{$comment->comment_type}

comment_{$new_status}_{$comment->comment_type}

操作挂钩:当特定注释类型的状态处于转换状态时激发。

do_action( “comment_{$new_status}_{$comment->comment_type}”, int $comment_ID , WP_Comment $comment )

说明(Description)

hook name、$new_status和$comment->comment_type的动态部分分别引用new comment status和comment type。


参数(Parameters)

参数类型说明
$comment_ID(int)评论ID。
$comment(WP_Comment)注释对象。
更新版本源码位置使用被使用
2.7.0wp-includes/comment.php:174810
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索