On this page
do_action( 'untrash_comment', string $comment_id, WP_Comment $comment )
Fires immediately before a comment is restored from the Trash.
Parameters
$comment_idstring-
The comment ID as a numeric string.
$commentWP_Comment-
The comment to be untrashed.
Source
File: wp-includes/comment.php. View all references
do_action( 'untrash_comment', $comment->comment_ID, $comment );
Related
Used By
| Used By | Description |
|---|---|
| wp_untrash_comment() wp-includes/comment.php | Removes a comment from the Trash |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/untrash_comment