woocommerce_analytics_import_customer_roles
Get the customer IDs and total count that need to be synced.
Usage
add_filter( 'woocommerce_analytics_import_customer_roles', 'wp_kama_woocommerce_analytics_import_customer_roles_filter' ); /** * Function for `woocommerce_analytics_import_customer_roles` filter-hook. * * @param int $limit Number of records to retrieve. * * @return int */ function wp_kama_woocommerce_analytics_import_customer_roles_filter( $limit ){ // filter... return $limit; }
- $limit(int)
- Number of records to retrieve.
Where the hook is called
woocommerce_analytics_import_customer_roles
woocommerce/src/Internal/Admin/Schedulers/CustomersScheduler.php 56
$customer_roles = apply_filters( 'woocommerce_analytics_import_customer_roles', array( 'customer' ) );