wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
rest_prepare_{$this->post_type} › Les Filtres WordPress
Depuis4.7.0
Dépréciéen/a
› apply_filters( "rest_prepare_{$this->post_type}", $response, $post, $request )
Paramètres: (3) |
|
Défini(e) dans: | |
Codex: |
Filters the post data for a REST API response.
The dynamic portion of the hook name, $this->post_type
, refers to the post type slug.
Possible hook names include:
rest_prepare_post
rest_prepare_page
rest_prepare_attachment
Fonctions en relation: rest_ensure_response, set_post_type, get_post_type, get_post_types, rest_get_route_for_post_type_items, register_post_type