WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about untrash_comment

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/comment.php do_action 1590 /**
* 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.
*/

Hook Parameters

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