WordPress at Your Fingertips
function is not described

WC_Object_Query::__construct() public WC 1.0

Create a new query.

{} 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->__construct( $args );
$args(array)
Criteria to query on in a format similar to WP_Query.

Code of WC_Object_Query::__construct() WC 5.5.2

<?php
public function __construct( $args = array() ) {
	$this->query_vars = wp_parse_args( $args, $this->get_default_query_vars() );
}