WordPress at Your Fingertips
function is not described

WC_Query::add_query_vars() public WC 1.0

Add query vars.

{} It's a method of the class: WC_Query{}

No Hooks.

Return

Array.

Usage

$WC_Query = new WC_Query();
$WC_Query->add_query_vars( $vars );
$vars(array) (required)
Query vars.

Code of WC_Query::add_query_vars() WC 5.6.0

public function add_query_vars( $vars ) {
	foreach ( $this->get_query_vars() as $key => $var ) {
		$vars[] = $key;
	}
	return $vars;
}