wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_route_for_post_type_items › Filtr WordPress Hooks

Od5.9.0
Przestarzałyn/a
apply_filters( 'rest_route_for_post_type_items', $route, $post_type )
Parametry: (2)
  • (string) $route The route path.
    Wymagane: Tak
  • (WP_Post_Type) $post_type The post type object.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the REST API route for a post type.





Źródło

return apply_filters( 'rest_route_for_post_type_items', $route, $post_type );