ActionScheduler_Abstract_QueueRunner::run_cleanup
Deprecated since since 4.0.0, action deletion is now handled automatically via a dedicated scheduled task.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Run the queue cleaner.
Method of the class: ActionScheduler_Abstract_QueueRunner{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->run_cleanup();
Changelog
| Deprecated | Since 4.0.0 | , action deletion is now handled automatically via a dedicated scheduled task. |
ActionScheduler_Abstract_QueueRunner::run_cleanup() ActionScheduler Abstract QueueRunner::run cleanup code WC 11.0.1
protected function run_cleanup() {
$this->cleaner->clean( 10 * $this->get_time_limit() );
}