WordPress at a glance
action is not described

untrashed_comment action-hook . WP 2.9.0

Fires immediately after a comment is restored from the Trash.


add_action( 'untrashed_comment', 'action_function_name_2190', 10, 2 );
function action_function_name_2190( $comment_id, $comment ){
	// action...
The comment ID.
The untrashed comment.


  • Since 4.9.0 Added the $comment parameter.

Where the hook is called

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

Where the hook is used (in WP core)

Does not used.