rest_get_route_for_post_type_items


rest_get_route_for_post_type_items ( $post_type )

Parameters:
  • (string) post_type The name of a registered post type.
Returns:
  • (string) The route path with a leading slash for the given post type, or an empty string if there is not a route.
Defined at:

Description

Gets the REST API route for a post type.

Related Functions

rest_get_route_for_post, rest_get_route_for_taxonomy_items, rest_get_route_for_term, register_post_type, rest_get_best_type_for_value

Top Google Results

User discussions

wpseek mobile