rest_route_for_post_type_items

rest_route_for_post_type_items

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('rest_route_for_post_type_items') is found 1 times:

  • /wp-includes/rest-api.php line 3180
    	 *
    	 * @param string       $route      The route path.
    	 * @param WP_Post_Type $post_type  The post type object.
    	 */
    	return apply_filters( 'rest_route_for_post_type_items', $route, $post_type );
    }
    
    /**
     * Gets the REST API route for a term.
     *
     * @since 5.5.0