Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_route_data ›

Seit4.4.0
Veraltetn/v
apply_filters( 'rest_route_data', $available, $routes )
Parameter: (2)
  • (array) $available Map of route to route data.
    Erforderlich: Ja
  • (array) $routes Internal route data as an associative array.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the publicly-visible data for 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.





Quellcode

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