ActionScheduler_QueueCleaner::get_batch_size()protectedWC 1.0

Get the batch size for cleaning the queue.

Method of the class: ActionScheduler_QueueCleaner{}

Hooks from the method

Return

Int.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_batch_size();

ActionScheduler_QueueCleaner::get_batch_size() code WC 9.3.3

protected function get_batch_size() {
	/**
	 * Filter the batch size when cleaning the queue.
	 *
	 * @param int $batch_size The number of actions to clean in one batch.
	 */
	return absint( apply_filters( 'action_scheduler_cleanup_batch_size', $this->batch_size ) );
}