Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_prepare_post_type ›

Da4.7.0
Deprecaton/a
apply_filters( 'rest_prepare_post_type', $response, $post_type, $request )
Parametri: (3)
  • (WP_REST_Response) $response The response object.
    Richiesto:
  • (object) $item The original post type object.
    Richiesto:
  • (WP_REST_Request) $request Request used to generate the response.
    Richiesto:
Definito a:
Codex:

Filters a post type returned from the API.

Allows modification of the post type data right before it is returned.





Sorgenti

return apply_filters( 'rest_prepare_post_type', $response, $post_type, $request );