woocommerce_analytics_report_schedulers
Get classes for syncing data.
Использование
add_filter( 'woocommerce_analytics_report_schedulers', 'wp_kama_woocommerce_analytics_report_schedulers_filter' ); /** * Function for `woocommerce_analytics_report_schedulers` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_analytics_report_schedulers_filter( $array ){ // filter... return $array; }
- $array
- -
Где вызывается хук
woocommerce_analytics_report_schedulers
woocommerce/src/Admin/ReportsSync.php 39-45
$schedulers = apply_filters( 'woocommerce_analytics_report_schedulers', array( new CustomersScheduler(), new OrdersScheduler(), ) );