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



rest_route_data › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
› apply_filters( 'rest_route_data', $available, $routes )
Parametry: (2)
  • () available Route data to expose in indexes, keyed by route.
    Wymagane: Tak
  • () routes Internal route data as an associative array.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the publicly-visible data for REST API routes.

This data is exposed on indexes and can be used by clients or developers to investigate the site and find out how to use it. It acts as a form of self-documentation.




Źródło

return apply_filters( 'rest_route_data', $available, $routes );