experimental_woocommerce_analytics_variations_collection_params filter-hookWC 6.5.0

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

Usage

add_filter( 'experimental_woocommerce_analytics_variations_collection_params', 'wp_kama_experimental_woocommerce_analytics_variations_collection_params_filter' );

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

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

Changelog

Since 6.5.0 Introduced.

Where the hook is called

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

Where the hook is used in WooCommerce

Usage not found.