wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



rest_prepare_{$this->taxonomy} › Les Filtres WordPress

Depuis4.7.0
Dépréciéen/a
apply_filters( "rest_prepare_{$this->taxonomy}", $response, $item, $request )
Paramètres: (3)
  • (WP_REST_Response) $response The response object.
    Requis: Oui
  • (WP_Term) $item The original term object.
    Requis: Oui
  • (WP_REST_Request) $request Request used to generate the response.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the term data for a REST API response.

The dynamic portion of the hook name, $this->taxonomy, refers to the taxonomy slug.

Possible hook names include:

  • rest_prepare_category
  • rest_prepare_post_tag

Allows modification of the term data right before it is returned.





Source

return apply_filters( "rest_prepare_{$this->taxonomy}", $response, $item, $request );