WordPress at Your Fingertips
filter is not described

woocommerce_rest_private_query_vars filter-hook . WC 1.0

Filter the allowed 'private' query vars for authorized users.

If the user has the edit_posts capability, we also allow use of private query parameters, which are only undesirable on the frontend, but are safe for use in query strings.

To disable anyway, use add_filter( [woocommerce_rest_private_query_vars](https://wp-kama.com/plugin/woocommerce/hook/woocommerce_rest_private_query_vars),'__return_empty_array');

Usage

add_filter( 'woocommerce_rest_private_query_vars', 'filter_function_name_570' );
function filter_function_name_570( $private_query_vars ){
	// filter...

	return $private_query_vars;
}
$private_query_vars(array)
Array of allowed query vars for authorized users. }

Where the hook is called

WC_REST_Posts_Controller::get_allowed_query_vars()
woocommerce_rest_private_query_vars
woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php 572
$private = apply_filters( 'woocommerce_rest_private_query_vars', $wp->private_query_vars );

Where in WP core the hook is used WooCommerce

Usage not found.