wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_route_data › WordPress Filter Hooks

Da4.4.0
Deprecaton/a
› apply_filters( 'rest_route_data', $available, $routes )
Parametri: (2)
  • () available Route data to expose in indexes, keyed by route.
    Richiesto: Sì
  • () routes Internal route data as an associative array.
    Richiesto: Sì
Definito a:
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.




Sorgenti

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