Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableMetaQuery::get_sql_clauses()publicWC 1.0

Returns JOIN and WHERE clauses to be appended to the main SQL query.

Method of the class: OrdersTableMetaQuery{}

No Hooks.

Return

Array.

Usage

$OrdersTableMetaQuery = new OrdersTableMetaQuery();
$OrdersTableMetaQuery->get_sql_clauses(): array;

OrdersTableMetaQuery::get_sql_clauses() code WC 9.3.3

public function get_sql_clauses(): array {
	return array(
		'join'  => $this->sanitize_join( $this->join ),
		'where' => $this->flatten_where_clauses( $this->where ),
	);
}