trashed_post_comments

trashed_post_comments

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('trashed_post_comments') is found 1 times:

  • /wp-includes/post.php line 4114
    	 *
    	 * @param int   $post_id  Post ID.
    	 * @param array $statuses Array of comment statuses.
    	 */
    	do_action( 'trashed_post_comments', $post_id, $statuses );
    
    	return $result;
    }
    
    /**
     * Restores comments for a post from the Trash.
    

See this hook used in plugins: