ActionScheduler_DBStore::save_unique_actionpublicWC 1.0

Save an action, checks if this is a unique action before actually saving.

Method of the class: ActionScheduler_DBStore{}

No Hooks.

Returns

Int. Action ID.

Usage

$ActionScheduler_DBStore = new ActionScheduler_DBStore();
$ActionScheduler_DBStore->save_unique_action( $action, ?DateTime $scheduled_date );
$action(ActionScheduler_Action) (required)
Action object.
?DateTime $scheduled_date
.
Default: null

ActionScheduler_DBStore::save_unique_action() code WC 10.3.6

public function save_unique_action( ActionScheduler_Action $action, ?DateTime $scheduled_date = null ) {
	return $this->save_action_to_db( $action, $scheduled_date, true );
}