WordPress at Your Fingertips
function is not described

WC_Object_Query::set() public WC 1.0

Set a query variable.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Object_Query = new WC_Object_Query();
$WC_Object_Query->set( $query_var, $value );
$query_var(string) (required)
Query variable to set.
$value(mixed) (required)
Value to set for query variable.

Code of WC_Object_Query::set() WC 5.5.2

<?php
public function set( $query_var, $value ) {
	$this->query_vars[ $query_var ] = $value;
}