ActionScheduler_ActionFactory::store_unique_action()
Store action if it's unique.
Метод класса: ActionScheduler_ActionFactory{}
Хуков нет.
Возвращает
int
. ID of the created action. Will be 0 if action was not created.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->store_unique_action( $action );
- $action(ActionScheduler_Action) (обязательный)
- Action object to store.
Код ActionScheduler_ActionFactory::store_unique_action() ActionScheduler ActionFactory::store unique action WC 7.7.2
protected function store_unique_action( ActionScheduler_Action $action ) { $store = ActionScheduler_Store::instance(); return method_exists( $store, 'save_unique_action' ) ? $store->save_unique_action( $action ) : $store->save_action( $action ); }