experimental_woocommerce_analytics_variations_stats_collection_params filter-hookWC 1.0

Experimental: Filter the list of parameters provided when querying data from the data store.

Usage

add_filter( 'experimental_woocommerce_analytics_variations_stats_collection_params', 'wp_kama_experimental_woocommerce_analytics_variations_stats_collection_params_filter' );

/**
 * Function for `experimental_woocommerce_analytics_variations_stats_collection_params` filter-hook.
 * 
 * @param array $collection_params List of parameters.
 *
 * @return array
 */
function wp_kama_experimental_woocommerce_analytics_variations_stats_collection_params_filter( $collection_params ){

	// filter...
	return $collection_params;
}
$collection_params(array)
List of parameters.

Where the hook is called

Controller::prepare_reports_query()
woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php 83
$collection_params = apply_filters( 'experimental_woocommerce_analytics_variations_stats_collection_params', $this->get_collection_params() );

Where the hook is used in WooCommerce

Usage not found.