WordPress at Your Fingertips
function is not described

WC_API::add_query_vars() public WC 2.0

Add new query vars.

{} It's a 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.

Code of WC_API::add_query_vars() WC 5.9.0

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