WP_Background_Process::cancel_process()
Cancel Process
Contents
Description Description
Stop processing queue items, clear cronjob and delete batch.
Source Source
File: vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php
480 481 482 483 484 485 486 487 488 489 | public function cancel_process() { if ( ! $this ->is_queue_empty() ) { $batch = $this ->get_batch(); $this -> delete ( $batch ->key ); wp_clear_scheduled_hook( $this ->cron_hook_identifier ); } } |
Expand full source code Collapse full source code View on GitHub