Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableMetaQuery::__construct()publicWC 1.0

Constructor.

Method of the class: OrdersTableMetaQuery{}

No Hooks.

Return

null. Nothing.

Usage

$OrdersTableMetaQuery = new OrdersTableMetaQuery();
$OrdersTableMetaQuery->__construct( $q );
$q(OrdersTableQuery) (required)
The main query being performed.

OrdersTableMetaQuery::__construct() code WC 7.1.0

public function __construct( OrdersTableQuery $q ) {
	$meta_query = $q->get( 'meta_query' );

	if ( ! $meta_query ) {
		return;
	}

	$this->queries = $this->sanitize_meta_query( $meta_query );

	$this->meta_table   = $q->get_table_name( 'meta' );
	$this->orders_table = $q->get_table_name( 'orders' );

	$this->build_query();
}