ActionScheduler_DBStore::save_action()publicWC 1.0

Save an action. Can save duplicate action as well, prefer using save_unique_action instead.

Method of the class: ActionScheduler_DBStore{}

No Hooks.

Return

Int. Action ID.

Usage

$ActionScheduler_DBStore = new ActionScheduler_DBStore();
$ActionScheduler_DBStore->save_action( $action, $scheduled_date );
$action(ActionScheduler_Action) (required)
Action object.
$scheduled_date(\DateTime)
Optional schedule date.
Default: null

ActionScheduler_DBStore::save_action() code WC 8.9.0

public function save_action( ActionScheduler_Action $action, \DateTime $scheduled_date = null ) {
	return $this->save_action_to_db( $action, $scheduled_date, false );
}