woocommerce_analytics_customers_stats_query_args filter-hookWC 1.0

Deprecated from version 9.3.0. It is no longer supported and can be removed in future releases. Use Reports\Customers\Query with a custom name, GenericQuery or \WC_Object_Query instead.

Get product data based on the current query vars.

Usage

add_filter( 'woocommerce_analytics_customers_stats_query_args', 'wp_kama_woocommerce_analytics_customers_stats_query_args_filter' );

/**
 * Function for `woocommerce_analytics_customers_stats_query_args` filter-hook.
 * 
 * @param  $query_vars 
 *
 * @return 
 */
function wp_kama_woocommerce_analytics_customers_stats_query_args_filter( $query_vars ){

	// filter...
	return $query_vars;
}
$query_vars
-

Changelog

Deprecated since 9.3.0 Customers\Stats\Query class is deprecated, please use Reports\Customers\Query with a custom name, GenericQuery or \WC_Object_Query instead.

Where the hook is called

Query::get_data()
woocommerce/src/Admin/API/Reports/Customers/Stats/Query.php 55
$args = apply_filters( 'woocommerce_analytics_customers_stats_query_args', $this->get_query_vars() );

Where the hook is used in WooCommerce

Usage not found.