ActionScheduler_HybridStore::save_actionpublicWC 1.0

Save an action to the primary store.

Method of the class: ActionScheduler_HybridStore{}

No Hooks.

Returns

Int. The action ID

Usage

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

ActionScheduler_HybridStore::save_action() code WC 10.3.3

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