WordPress at Your Fingertips
function is not described

WC_Legacy_API::add_query_vars() public WC 2.0

Add new query vars.

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

No Hooks.

Return

String[].

Usage

$WC_Legacy_API = new WC_Legacy_API();
$WC_Legacy_API->add_query_vars( $vars );
$vars(array) (required)
Vars.

Changelog

Since 2.0 Introduced.

Code of WC_Legacy_API::add_query_vars() WC 5.6.0

public function add_query_vars( $vars ) {
	$vars[] = 'wc-api-version'; // Deprecated since 2.6.0.
	$vars[] = 'wc-api-route'; // Deprecated since 2.6.0.
	return $vars;
}