Automattic\WooCommerce\Admin\API\Reports\Categories
Query::get_data()
Deprecated from version 9.3.0. It is no longer supported and can be removed in future releases. Use
`GenericQuery`, \WC_Object_Query`, or use `DataStore` directly
instead.Get categories data based on the current query vars.
Method of the class: Query{}
Hooks from the method
Return
Array
.
Usage
$Query = new Query(); $Query->get_data();
Changelog
Deprecated since 9.3.0 | Categories\Query class is deprecated. Please use GenericQuery, \WC_Object_Query, or useDataStore` directly. |
Query::get_data() Query::get data code WC 9.4.2
public function get_data() { wc_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '9.3.0', '`GenericQuery`, `\WC_Object_Query`, or direct `DataStore` use' ); $args = apply_filters( 'woocommerce_analytics_categories_query_args', $this->get_query_vars() ); $results = \WC_Data_Store::load( self::REPORT_NAME )->get_data( $args ); return apply_filters( 'woocommerce_analytics_categories_select_query', $results, $args ); }