Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
wp-content
/
plugins
/
woocommerce
/
packages
/
action-scheduler
/
classes
/
actions
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php class ActionScheduler_Action { protected $hook = ''; protected $args = array(); protected $schedule = NULL; protected $group = ''; public function __construct($hook, array $args = array(), ActionScheduler_Schedule $schedule = NULL, $group = '') { $schedule = empty($schedule) ? new ActionScheduler_NullSchedule() : $schedule; $this->set_hook($hook); $this->set_schedule($schedule); $this->set_args($args); $this->set_group($group); } public function execute() { return do_action_ref_array($this->get_hook(), array_values($this->get_args())); } protected function set_hook($hook) { $this->hook = $hook; } public function get_hook() { return $this->hook; } protected function set_schedule(ActionScheduler_Schedule $schedule) { $this->schedule = $schedule; } public function get_schedule() { return $this->schedule; } protected function set_args(array $args) { $this->args = $args; } public function get_args() { return $this->args; } protected function set_group($group) { $this->group = $group; } public function get_group() { return $this->group; } public function is_finished() { return FALSE; } }