untrashed_comment

动作钩子
do_action( 'untrashed_comment', $comment->comment_ID, $comment )
参数
  • (string) $comment_id The comment ID as a numeric string.
    Required:
  • (WP_Comment) $comment The untrashed comment.
    Required:
定义位置
相关勾子
trashed_commentuntrash_commenttrash_commentunspammed_commentunspam_comment
相关方法
wp_untrash_commentthe_commentwp_trash_commentwp_untrash_post_commentsedit_commentwp_trash_post_comments
引入
4.9.0
弃用
-

“untrashed_comment”是一个动作钩子,在从回收站中恢复评论后触发。 当评论从回收站中恢复时,此钩子可用于执行其他操作,例如发送通知、更新其他记录或记录活动。

在评论从回收站中恢复后立即触发。

do_action( 'untrashed_comment', $comment->comment_ID, $comment );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 11:36:30

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: