Action hook 'untrash_comment'

in WP Core File wp-includes/comment.php at line 1593

Description

Fires immediately before a comment is restored from the Trash.

Occurrences

Filename Line Number
wp-includes/comment.php 1593

Parameters

Type Name Description
string $comment_id The comment ID as a numeric string.
WP_Comment $comment The comment to be untrashed.

PHP Doc

/**
	 * Fires immediately before a comment is restored from the Trash.
	 *
	 * @since 2.9.0
	 * @since 4.9.0 Added the `$comment` parameter.
	 *
	 * @param string     $comment_id The comment ID as a numeric string.
	 * @param WP_Comment $comment    The comment to be untrashed.
	 */