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.2

do_action('trashed_post_comments') is found 1 times:

  • /wp-includes/post.php line 4114
    4110
    4111
    4112
    4113
    4114
    4115
    4116
    4117
    4118
    4119
    4120
         *
         * @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: