Automattic\WooCommerce\Admin\API\Reports
Query::__construct
Deprecated since 9.3.0. It is no longer supported and may be removed in future releases. Use
`GenericQuery`, \WC_Object_Query`, or use `DataStore` directly instead.Create a new query.
Method of the class: Query{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Query = new Query(); $Query->__construct( $args );
- $args(array)
- Criteria to query on in a format similar to WP_Query.
Default: array()
Changelog
| Deprecated since 9.3.0 | Query class is deprecated. Please use GenericQuery, \WC_Object_Query, or useDataStore` directly. |
Query::__construct() Query:: construct code WC 10.3.5
public function __construct( $args = array() ) {
wc_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '9.3.0', '`GenericQuery`, `\WC_Object_Query`, or direct `DataStore` use' );
parent::__construct( $args );
}