Automattic\WooCommerce\Internal\BatchProcessing

BatchProcessingController::__construct()publicWC 1.0

BatchProcessingController constructor.

Schedules the necessary actions to process batches.

{} Это метод класса: BatchProcessingController{}

Хуков нет.

Возвращает

null. Ничего.

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

$BatchProcessingController = new BatchProcessingController();
$BatchProcessingController->__construct();

Код BatchProcessingController::__construct() WC 6.9.4

public function __construct() {
	add_action(
		self::WATCHDOG_ACTION_NAME,
		function () {
			$this->handle_watchdog_action();
		}
	);

	add_action(
		self::PROCESS_SINGLE_BATCH_ACTION_NAME,
		function ( $batch_process ) {
			$this->process_next_batch_for_single_processor( $batch_process );
		},
		10,
		2
	);

	$this->logger = wc_get_logger();
}