Automattic\WooCommerce\Internal\StockNotifications\AsyncTasks

NotificationsProcessor::get_batch_sizeprivateWC 1.0

Get the batch size for processing notifications.

Method of the class: NotificationsProcessor{}

Returns

Int.

Usage

// private - for code of main (parent) class only
$result = $this->get_batch_size(): int;

NotificationsProcessor::get_batch_size() code WC 10.3.6

private function get_batch_size(): int {
	/**
	 * Filter: woocommerce_customer_stock_notifications_batch_size
	 *
	 * @since 10.2.0
	 *
	 * Allow customization of batch size for processing notifications.
	 *
	 * @param int $batch_size Default batch size.
	 * @return int
	 */
	return (int) apply_filters( 'woocommerce_customer_stock_notifications_batch_size', self::BATCH_SIZE );
}