WordPress at Your Fingertips
filter is not described

query_vars filter-hook . WC 1.0

Filter the publicly allowed query vars.

Allows adjusting of the default query vars that are made public.

Usage

add_filter( 'query_vars', 'filter_function_name_1656' );
function filter_function_name_1656( $public_query_vars ){
	// filter...

	return $public_query_vars;
}
$public_query_vars(array)
Array of allowed WP_Query query vars.

Where the hook is called

WC_REST_Posts_Controller::get_allowed_query_vars()
query_vars
woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php 555
$valid_vars = apply_filters( 'query_vars', $wp->public_query_vars );

Where in WP core the hook is used WooCommerce

woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php 41
add_filter( 'query_vars', array( $this, 'add_custom_query_var' ) );
woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php 39
add_filter( 'query_vars', array( $this, 'add_custom_query_var' ) );
woocommerce/includes/class-wc-api.php 27
add_filter( 'query_vars', array( $this, 'add_query_vars' ), 0 );
woocommerce/includes/class-wc-auth.php 32
add_filter( 'query_vars', array( $this, 'add_query_vars' ), 0 );
woocommerce/includes/class-wc-query.php 55
add_filter( 'query_vars', array( $this, 'add_query_vars' ), 0 );