apply_filters( 'woocommerce_rest_query_vars', array )
Filter allowed query vars for the REST API.
Description Description
This filter allows you to add or remove query vars from the final allowed list for all requests, including unauthenticated ones. To alter the vars for editors only.
Parameters Parameters
-
Array of allowed WP_Query query vars. @param string $allowed_query_var The query var to allow.
Source Source
File: includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php