wpseek.com
A WordPress-centric search engine for devs and theme authors
rest_revision_query › WordPress Filter Hooks
Since5.0.0
Deprecatedn/a
› apply_filters( 'rest_revision_query', $args, $request )
| Parameters: (2) |
|
| Defined at: | |
| Codex: |
Filters WP_Query arguments when querying revisions via the REST API.
Serves the same purpose as the {@see 'rest_{$this->post_type}_query'} filter in WP_REST_Posts_Controller, but for the standalone WP_REST_Revisions_Controller.Related Functions: wp_get_post_revisions_url, _wp_get_post_revision_version, is_main_query, rest_is_array, wp_post_revision_title, wp_restore_post_revision_meta
Related Hooks: rest_user_query, rest_comment_query, rest_delete_revision, posts_pre_query, rest_prepare_revision