ActionScheduler_DBStore::save_unique_action()
Save an action, checks if this is a unique action before actually saving.
Method of the class: ActionScheduler_DBStore{}
No Hooks.
Return
Int
. Action ID.
Usage
$ActionScheduler_DBStore = new ActionScheduler_DBStore(); $ActionScheduler_DBStore->save_unique_action( $action, $scheduled_date );
- $action(ActionScheduler_Action) (required)
- Action object.
- $scheduled_date(\DateTime)
- Optional schedule date.
Default: null
ActionScheduler_DBStore::save_unique_action() ActionScheduler DBStore::save unique action code WC 9.5.1
public function save_unique_action( ActionScheduler_Action $action, \DateTime $scheduled_date = null ) { return $this->save_action_to_db( $action, $scheduled_date, true ); }