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



rest_namespace_index ›

Seit4.4.0
Veraltetn/v
apply_filters( 'rest_namespace_index', $response, $request )
Parameter: (2)
  • (WP_REST_Response) $response Response data.
    Erforderlich: Ja
  • (WP_REST_Request) $request Request data. The namespace is passed as the 'namespace' parameter.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the namespace index data.

This typically is just the route data for the namespace, but you can add any data you'd like here.





Quellcode

return apply_filters( 'rest_namespace_index', $response, $request );