ActionScheduler_OptionLock::new_lock_value
Supplies a lock value consisting of a unique value and the current timestamp, which are separated by a pipe character.
Example: (string) "649de012e6b262.09774912|1688068114"
Method of the class: ActionScheduler_OptionLock{}
No Hooks.
Returns
String
.
Usage
// private - for code of main (parent) class only $result = $this->new_lock_value( $lock_type );
- $lock_type(string) (required)
- A string to identify different lock types.
ActionScheduler_OptionLock::new_lock_value() ActionScheduler OptionLock::new lock value code WC 9.9.5
private function new_lock_value( $lock_type ) { return uniqid( '', true ) . '|' . ( time() + $this->get_duration( $lock_type ) ); }