woocommerce_customer_stock_notifications_batch_size filter-hookWC 10.2.0

Filter: woocommerce_customer_stock_notifications_batch_size

Allow customization of batch size for processing notifications.

Usage

add_filter( 'woocommerce_customer_stock_notifications_batch_size', 'wp_kama_woocommerce_customer_stock_notifications_batch_size_filter' );

/**
 * Function for `woocommerce_customer_stock_notifications_batch_size` filter-hook.
 * 
 * @param int $batch_size Default batch size.
 *
 * @return int
 */
function wp_kama_woocommerce_customer_stock_notifications_batch_size_filter( $batch_size ){

	// filter...
	return $batch_size;
}
$batch_size(int)
Default batch size.

Changelog

Since 10.2.0 Introduced.

Where the hook is called

NotificationsProcessor::get_batch_size()
woocommerce_customer_stock_notifications_batch_size
woocommerce/src/Internal/StockNotifications/AsyncTasks/NotificationsProcessor.php 110
return (int) apply_filters( 'woocommerce_customer_stock_notifications_batch_size', self::BATCH_SIZE );

Where the hook is used in WooCommerce

Usage not found.