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



rest_route_for_post › Filtr WordPress Hooks

Od5.5.0
Przestarzałyn/a
apply_filters( 'rest_route_for_post', $route, $post )
Parametry: (2)
  • (string) $route The route path.
    Wymagane: Tak
  • (WP_Post) $post The post object.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the REST API route for a post.





Źródło

return apply_filters( 'rest_route_for_post', $route, $post );