Uma área de pesquisa sobre o WordPress para devs e autores do tema



rest_route_data ›

Desde4.4.0
Obsoleton/a
apply_filters( 'rest_route_data', $available, $routes )
Parâmetros: (2)
  • (array) $available Map of route to route data.
    Required: Yes
  • (array) $routes Internal route data as an associative array.
    Required: Yes
Definido em:
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.





Fonte

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