WordPress at Your Fingertips
function is not described

ActionScheduler_QueueCleaner::__construct() public WC 1.0

ActionScheduler_QueueCleaner constructor.

{} It's a method of the class: ActionScheduler_QueueCleaner{}

No Hooks.

Return

null. Nothing.

Usage

$ActionScheduler_QueueCleaner = new ActionScheduler_QueueCleaner();
$ActionScheduler_QueueCleaner->__construct( $store, $batch_size );
$store(ActionScheduler_Store)
The store instance.
Default: null
$batch_size(int)
The batch size.
Default: 20

Code of ActionScheduler_QueueCleaner::__construct() WC 6.1.1

public function __construct( ActionScheduler_Store $store = null, $batch_size = 20 ) {
	$this->store = $store ? $store : ActionScheduler_Store::instance();
	$this->batch_size = $batch_size;
}