ActionScheduler_HybridStore::save_action()
Save an action to the primary store.
Method of the class: ActionScheduler_HybridStore{}
No Hooks.
Return
Int
. The action ID
Usage
$ActionScheduler_HybridStore = new ActionScheduler_HybridStore(); $ActionScheduler_HybridStore->save_action( $action, $date );
- $action(ActionScheduler_Action) (required)
- Action object to be saved.
- $date(DateTime)
- Schedule date.
Default: null
ActionScheduler_HybridStore::save_action() ActionScheduler HybridStore::save action code WC 9.3.1
public function save_action( ActionScheduler_Action $action, DateTime $date = null ) { return $this->primary_store->save_action( $action, $date ); }