WC_API::add_query_vars()publicWC 2.0

Add new query vars.

Method of the class: WC_API{}

No Hooks.

Return

String[].

Usage

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

Changelog

Since 2.0 Introduced.

WC_API::add_query_vars() code WC 7.3.0

public function add_query_vars( $vars ) {
	$vars   = parent::add_query_vars( $vars );
	$vars[] = 'wc-api';
	return $vars;
}