File: //proc/self/cwd/wp-content/plugins/automatewoo/includes/Background_Processes/Event_Runner.php
<?php
// phpcs:ignoreFile
namespace AutomateWoo\Background_Processes;
use AutomateWoo\Event_Factory;
use AutomateWoo\Clean;
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Background processor for events
*
* @deprecated in 5.2.0 use AW()->action_scheduler() instead.
*/
class Event_Runner extends Base {
/** @var string */
public $action = 'events';
/**
* @param int $event_id
* @return bool
*/
protected function task( $event_id ) {
if ( $event = Event_Factory::get( Clean::id( $event_id ) ) ) {
$event->run();
}
return false;
}
}