untrash_comment

untrash_comment

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.6.2

do_action('untrash_comment') is found 1 times:

  • /wp-includes/comment.php line 1593
    	 *
    	 * @param string     $comment_id The comment ID as a numeric string.
    	 * @param WP_Comment $comment    The comment to be untrashed.
    	 */
    	do_action( 'untrash_comment', $comment->comment_ID, $comment );
    
    	$status = (string) get_comment_meta( $comment->comment_ID, '_wp_trash_meta_status', true );
    	if ( empty( $status ) ) {
    		$status = '0';
    	}