ActionScheduler_ActionFactory::store
Save action to database.
Method of the class: ActionScheduler_ActionFactory{}
No Hooks.
Returns
Int. The ID of the stored action
Usage
// protected - for code of main (parent) or child class $result = $this->store( $action );
- $action(ActionScheduler_Action) (required)
- Action object to save.
ActionScheduler_ActionFactory::store() ActionScheduler ActionFactory::store code WC 10.6.2
protected function store( ActionScheduler_Action $action ) {
$store = ActionScheduler_Store::instance();
return $store->save_action( $action );
}