WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
фильтр не описан

woocommerce_analytics_(field) хук-фильтр . WC 1.0

Filter the IDs before retrieving report data.

Allows filtering of the objects included or excluded from reports.

Использование

add_filter( 'woocommerce_analytics_(field)', 'filter_function_name_1870', 10, 4 );
function filter_function_name_1870( $ids, $query_args, $field, $context ){
	// filter...

	return $ids;
}
$ids(массив)
List of object Ids.
$query_args(массив)
The original arguments for the request.
$field(строка)
The object type.
$context(строка)
The data store context.

Где вызывается хук

DataStore::get_filtered_ids()
woocommerce_analytics_(field)
woocommerce/packages/woocommerce-admin/src/API/Reports/DataStore.php 1297
$ids = apply_filters( 'woocommerce_analytics_ ' . $field, $ids, $query_args, $field, $this->context );

Где используется хук в ядре WooCommerce

woocommerce/packages/woocommerce-admin/src/API/Reports/DataStore.php 69
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 5 );
woocommerce/packages/woocommerce-admin/src/API/Reports/DataStore.php 103
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 10 );
woocommerce/packages/woocommerce-admin/src/API/Reports/DataStore.php 48
add_filter( 'woocommerce_analytics_products_stats_select_query', array( $this, 'set_default_report_data' ) );
woocommerce/packages/woocommerce-admin/src/API/Reports/DataStore.php 83
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 15 );
woocommerce/packages/woocommerce-admin/src/API/Reports/DataStore.php 37
add_filter( 'woocommerce_analytics_taxes_stats_select_query', array( $this, 'set_default_report_data' ) );
woocommerce/packages/woocommerce-admin/src/API/Reports/DataStore.php 32
add_action( 'woocommerce_analytics_regenerate_init', array( $this, 'update_status_to_actioned' ) );