Filter hook 'rest_route_for_post_type_items'

in WP Core File wp-includes/rest-api.php at line 3183

Description

Filters the REST API route for a post type.

Occurrences

Filename Line Number
wp-includes/rest-api.php 3183

Parameters

Type Name Description
string $route The route path.
WP_Post_Type $post_type The post type object.

PHP Doc

/**
	 * Filters the REST API route for a post type.
	 *
	 * @since 5.9.0
	 *
	 * @param string       $route      The route path.
	 * @param WP_Post_Type $post_type  The post type object.
	 */