ActionScheduler_ActionFactory::store()protectedWC 1.0

Save action to database.

Method of the class: ActionScheduler_ActionFactory{}

No Hooks.

Return

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() code WC 8.7.0

protected function store( ActionScheduler_Action $action ) {
	$store = ActionScheduler_Store::instance();
	return $store->save_action( $action );
}