wpseek.com
A WordPress-centric search engine for devs and theme authors
rest_prepare_post_type › WordPress Filter Hooks
Since4.7.0
Deprecatedn/a
› apply_filters( 'rest_prepare_post_type', $response, $post_type, $request )
Parameters: (3) |
|
Defined at: | |
Codex: |
Filters a post type returned from the REST API.
Allows modification of the post type data right before it is returned.
Related Functions: register_post_type, unregister_post_type, set_post_type, get_post_type, get_post_types, register_post_meta