wpseek.com
A WordPress-centric search engine for devs and theme authors
rest_prepare_{$this->taxonomy} › WordPress Filter Hooks
Since4.7.0
Deprecatedn/a
› apply_filters( "rest_prepare_{$this->taxonomy}", $response, $item, $request )
Parameters: (3) |
|
Defined at: | |
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.
Related Functions: rest_parse_hex_color, rest_get_route_for_taxonomy_items, get_taxonomy, register_taxonomy, get_the_taxonomies, rest_parse_request_arg