Automattic\WooCommerce\Internal\DataStores\Orders
OrdersTableMetaQuery::__construct()
Constructor.
Метод класса: OrdersTableMetaQuery{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$OrdersTableMetaQuery = new OrdersTableMetaQuery(); $OrdersTableMetaQuery->__construct( $q );
- $q(OrdersTableQuery) (обязательный)
- The main query being performed.
Код OrdersTableMetaQuery::__construct() OrdersTableMetaQuery:: construct WC 9.4.2
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(); }