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.


Top ↑

Source Source

File: includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php



Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.