Automattic\WooCommerce\Admin\API\Reports
Query::__construct()
Устарела с версии 9.3.0. Больше не поддерживается и может быть удалена. Используйте
`GenericQuery`, \WC_Object_Query`, or use `DataStore` directly
.Create a new query.
Метод класса: Query{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Query = new Query(); $Query->__construct( $args );
- $args(массив)
- Criteria to query on in a format similar to WP_Query.
По умолчанию: array()
Список изменений
Устарела с 9.3.0 | Query class is deprecated. Please use GenericQuery, \WC_Object_Query, or useDataStore` directly. |
Код Query::__construct() Query:: construct WC 9.7.1
public function __construct( $args = array() ) { wc_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '9.3.0', '`GenericQuery`, `\WC_Object_Query`, or direct `DataStore` use' ); parent::__construct( $args ); }