ActionScheduler_HybridStore::save_action()publicWC 1.0

Save an action to the primary store.

Method of the class: ActionScheduler_HybridStore{}

No Hooks.

Return

Int. The action ID

Usage

$ActionScheduler_HybridStore = new ActionScheduler_HybridStore();
$ActionScheduler_HybridStore->save_action( $action, $date );
$action(ActionScheduler_Action) (required)
Action object to be saved.
$date(DateTime)
Schedule date.
Default: null

ActionScheduler_HybridStore::save_action() code WC 8.7.0

public function save_action( ActionScheduler_Action $action, DateTime $date = null ) {
	return $this->primary_store->save_action( $action, $date );
}