ActionScheduler_wpPostStore::generate_claim_id()
Generate claim id.
Method of the class: ActionScheduler_wpPostStore{}
No Hooks.
Return
String
.
Usage
// protected - for code of main (parent) or child class $result = $this->generate_claim_id();
ActionScheduler_wpPostStore::generate_claim_id() ActionScheduler wpPostStore::generate claim id code WC 8.7.0
protected function generate_claim_id() { $claim_id = md5( microtime( true ) . wp_rand( 0, 1000 ) ); return substr( $claim_id, 0, 20 ); // to fit in db field with 20 char limit. }