rest_prepare_post_type

rest_prepare_post_type

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('rest_prepare_post_type') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php line 279
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
         * @param WP_REST_Response $response  The response object.
         * @param WP_Post_Type     $post_type The original post type object.
         * @param WP_REST_Request  $request   Request used to generate the response.
         */
        return apply_filters( 'rest_prepare_post_type', $response, $post_type, $request );
    }
     
    /**
     * Prepares links for the request.
     *
     * @since 6.1.0

See this hook used in plugins: