woocommerce_analytics_variations_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 GenericQuery or \WC_Object_Query instead.

Get variations data based on the current query vars.

Usage

add_filter( 'woocommerce_analytics_variations_stats_query_args', 'wp_kama_woocommerce_analytics_variations_stats_query_args_filter' );

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

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

Changelog

Deprecated since 9.3.0 Variations\Stats\Query class is deprecated, please use GenericQuery or \WC_Object_Query instead.

Where the hook is called

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

Where the hook is used in WooCommerce

Usage not found.