ActionScheduler_ActionFactory::store_unique_action()protectedWC 1.0

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

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 );
}