首页>文档>Wordpress开发文档>Wordpress 钩子>comment_{$old_status}_to_{$new_status}

comment_{$old_status}_to_{$new_status}

动作钩子::当注释状态从一个特定状态转换到另一个状态时激发。

do_action( “comment_{$old_status}_to_{$new_status}”, WP_Comment $comment )

说明(Description)

hook name、$old_status和$new_status的动态部分分别引用旧的和新的注释状态。


参数(Parameters)

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