WC_Legacy_API::add_query_vars( array $vars )

Add new query vars.


Description Description


Parameters Parameters

$vars

(Required) Vars.


Top ↑

Return Return

(string[])


Top ↑

Source Source

File: includes/legacy/class-wc-legacy-api.php

	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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.