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

apply_filters('rest_prepare_post_type') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php line 279
    		 * @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: