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{}

Хуков нет.

Возвращает

Массив.

Использование

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

Код OrdersTableMetaQuery::get_sql_clauses() WC 6.9.4

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