wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_prepare_post_type › Filtr WordPress Hooks

Od4.7.0
Przestarzałyn/a
apply_filters( 'rest_prepare_post_type', $response, $post_type, $request )
Parametry: (3)
  • (WP_REST_Response) $response The response object.
    Wymagane: Tak
  • (WP_Post_Type) $post_type The original post type object.
    Wymagane: Tak
  • (WP_REST_Request) $request Request used to generate the response.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters a post type returned from the REST API.

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





Źródło

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