wphooks.info - untrashed_comment

untrashed_comment

(trunk - 5.0-alpha-43293)

The hook occurs in the following file:

wp-includes/comment.php:
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
		delete_comment_meta( $comment->comment_ID, '_wp_trash_meta_status' );
		/**
		 * Fires immediately after a comment is restored from the Trash.
		 *
		 * @since 2.9.0
		 * @since 4.9.0 Added the `$comment` parameter.
		 *
		 * @param int        $comment_id The comment ID.
		 * @param WP_Comment $comment    The untrashed comment.
		 */
		do_action( 'untrashed_comment', $comment->comment_ID, $comment );
		return true;
	}

	return false;
}

/**
 * Marks a comment as Spam
 *