untrashed_comment action-hookWP 2.9.0

Fires immediately after a comment is restored from the Trash.

Usage

add_action( 'untrashed_comment', 'wp_kama_untrashed_comment_action', 10, 2 );
function wp_kama_untrashed_comment_action( $comment_id, $comment ){
	// action...
}
$comment_id(string)
The comment ID as a numeric string.
$comment(WP_Comment)
The untrashed comment.

Changelog

Since 2.9.0 Introduced.
Since 4.9.0 Added the $comment parameter.

Where the hook is called

wp_untrash_comment()
untrashed_comment
wp-includes/comment.php 1636
do_action( 'untrashed_comment', $comment->comment_ID, $comment );

Where the hook is used in WordPress

Usage not found.