woocommerce_analytics_import_customer_roles хук-фильтр . WC 1.0
Get the customer IDs and total count that need to be synced.
Использование
add_filter( 'woocommerce_analytics_import_customer_roles', 'filter_function_name_6503' ); function filter_function_name_6503( $limit ){ // filter... return $limit; }
- $limit(число)
- Number of records to retrieve.
Где вызывается хук
woocommerce_analytics_import_customer_roles
woocommerce/packages/woocommerce-admin/src/Schedulers/CustomersScheduler.php 60
$customer_roles = apply_filters( 'woocommerce_analytics_import_customer_roles', array( 'customer' ) );