ActionScheduler_DBStore::save_action()
Save an action. Can save duplicate action as well, prefer using save_unique_action instead.
Метод класса: ActionScheduler_DBStore{}
Хуков нет.
Возвращает
int
. Action ID.
Использование
$ActionScheduler_DBStore = new ActionScheduler_DBStore(); $ActionScheduler_DBStore->save_action( $action, $scheduled_date );
- $action(ActionScheduler_Action) (обязательный)
- Action object.
- $scheduled_date(\DateTime)
- Optional schedule date.
По умолчанию: null
Код ActionScheduler_DBStore::save_action() ActionScheduler DBStore::save action WC 7.7.0
public function save_action( ActionScheduler_Action $action, \DateTime $scheduled_date = null ) { return $this->save_action_to_db( $action, $scheduled_date, false ); }