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