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)
- -
- $scheduled_date(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 8.7.0
abstract public function save_action( ActionScheduler_Action $action, DateTime $scheduled_date = NULL );