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', '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.

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

CustomersScheduler::get_items()
woocommerce_analytics_import_customer_roles
woocommerce/src/Internal/Admin/Schedulers/CustomersScheduler.php 65
$customer_roles = apply_filters( 'woocommerce_analytics_import_customer_roles', array( 'customer' ) );

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

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