WordPress at Your Fingertips
function is not described

ActionScheduler_QueueCleaner::clean() public WC 1.0

Do all of the cleaning actions.

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

No Hooks.

Return

null. Nothing.

Usage

$ActionScheduler_QueueCleaner = new ActionScheduler_QueueCleaner();
$ActionScheduler_QueueCleaner->clean( $time_limit );
$time_limit(int)
The number of seconds to use as the timeout and failure period.
Default: 300 (5 minutes)

Code of ActionScheduler_QueueCleaner::clean() WC 6.1.1

public function clean( $time_limit = 300 ) {
	$this->delete_old_actions();
	$this->reset_timeouts( $time_limit );
	$this->mark_failures( $time_limit );
}