WC_Auth::add_query_vars()
Add query vars.
Method of the class: WC_Auth{}
No Hooks.
Return
String[]
.
Usage
$WC_Auth = new WC_Auth(); $WC_Auth->add_query_vars( $vars );
- $vars(array) (required)
- Query variables.
Changelog
Since 2.4.0 | Introduced. |
WC_Auth::add_query_vars() WC Auth::add query vars code WC 9.4.2
public function add_query_vars( $vars ) { $vars[] = 'wc-auth-version'; $vars[] = 'wc-auth-route'; return $vars; }