ActionScheduler_DBStore::save_unique_action
Save an action, checks if this is a unique action before actually saving.
Метод класса: ActionScheduler_DBStore{}
Хуков нет.
Возвращает
int. Action ID.
Использование
$ActionScheduler_DBStore = new ActionScheduler_DBStore(); $ActionScheduler_DBStore->save_unique_action( $action, ?DateTime $scheduled_date );
- $action(ActionScheduler_Action) (обязательный)
- Action object.
- ?DateTime $scheduled_date
- .
По умолчанию:null
Код ActionScheduler_DBStore::save_unique_action() ActionScheduler DBStore::save unique action WC 10.8.1
public function save_unique_action( ActionScheduler_Action $action, ?DateTime $scheduled_date = null ) {
return $this->save_action_to_db( $action, $scheduled_date, true );
}