Automattic\WooCommerce\Internal\StockNotifications\AsyncTasks
NotificationsProcessor::get_batch_size
Get the batch size for processing notifications.
Метод класса: NotificationsProcessor{}
Хуки из метода
Возвращает
int.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_batch_size(): int;
Код NotificationsProcessor::get_batch_size() NotificationsProcessor::get batch size WC 11.2.2
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 );
}