Automattic\WooCommerce\Internal\BatchProcessing
BatchProcessingController::__construct()
BatchProcessingController constructor.
Schedules the necessary actions to process batches.
Method of the class: BatchProcessingController{}
No Hooks.
Return
null
. Nothing (null).
Usage
$BatchProcessingController = new BatchProcessingController(); $BatchProcessingController->__construct();
BatchProcessingController::__construct() BatchProcessingController:: construct code WC 9.5.1
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 ); add_action( 'shutdown', function () { $this->remove_or_retry_failed_processors(); } ); $this->logger = wc_get_logger(); }