untrash_comment

动作钩子


do_action( 'untrash_comment', $comment->comment_ID, $comment )
参数
  • (string)
    $comment_id
    The comment ID as a numeric string.
    Required:
  • (WP_Comment)
    $comment
    The comment to be untrashed.
    Required:
定义位置
  • wp-includes/comment.php
    , line 1590
引入
4.9.0
弃用

Fires immediately before a comment is restored from the Trash.

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