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.

Метод класса: OrdersTableMetaQuery{}

No Hooks.

Return

Array.

Usage

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

Код OrdersTableMetaQuery::get_sql_clauses() WC 7.1.0

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