ActionScheduler_Store::save_action()
Method of the class: ActionScheduler_Store{}
No Hooks.
Return
Int
. The action ID
Usage
$ActionScheduler_Store = new ActionScheduler_Store(); $ActionScheduler_Store->save_action( $action, $scheduled_date );
- $action(ActionScheduler_Action) (required)
- Action to save.
- $scheduled_date(null|DateTime)
- Optional Date of the first instance to store. Otherwise uses the first date of the action's schedule.
Default: NULL
ActionScheduler_Store::save_action() ActionScheduler Store::save action code WC 9.4.2
abstract public function save_action( ActionScheduler_Action $action, DateTime $scheduled_date = NULL );