Filters the query_vars used in get_items() for the constructed query.
$valuestringwp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1231WP_REST_Posts_Controller::prepare_items_query()wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php:573WP_REST_Revisions_Controller::prepare_items_query() * The dynamic portion of the hook name, `$key`, refers to the query_var key. * * @since 4.7.0 * * @param string $value The query_var value. */ $query_args[ $key ] = apply_filters( "rest_query_var-{$key}", $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } if ( 'post' !== $this->post_type || ! isset( $query_args['ignore_sticky_posts'] ) ) { $query_args['ignore_sticky_posts'] = true; }Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.