Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_prepare_{$this->post_type} ›

Da4.7.0
Deprecaton/a
apply_filters( "rest_prepare_{$this->post_type}", $response, $post, $request )
Parametri: (3)
  • (WP_REST_Response) $response The response object.
    Richiesto:
  • (WP_Post) $post Post object.
    Richiesto:
  • (WP_REST_Request) $request Request object.
    Richiesto:
Definito a:
Codex:

Filters the post data for a response.

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





Sorgenti

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