woocommerce_analytics_import_customer_roles

woocommerce_analytics_import_customer_roles

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_analytics_import_customer_roles') is found 1 times:

  • /src/Internal/Admin/Schedulers/CustomersScheduler.php line 56
    	 * @param int|bool $days Number of days prior to current date to limit search results.
    	 * @param bool     $skip_existing Skip already imported customers.
    	 */
    	public static function get_items( $limit = 10, $page = 1, $days = false, $skip_existing = false ) {
    		$customer_roles = apply_filters( 'woocommerce_analytics_import_customer_roles', array( 'customer' ) );
    		$query_args     = array(
    			'fields'   => 'ID',
    			'orderby'  => 'ID',
    			'order'    => 'ASC',
    			'number'   => $limit,
    			'paged'    => $page,