Tribe__Tickets__Tickets::generate_security_code( string $attendee_id )
Generates the security code that will be used for printed tickets and QR codes.
Contents
Parameters
- $attendee_id
-
(string) (Required) The attendee ID or another string to based the security code off of.
Return
(string) The generated security code.
Source
File: src/Tribe/Tickets.php
public function generate_security_code( $attendee_id ) { return substr( md5( wp_rand() . '_' . $attendee_id ), 0, 10 ); }
Changelog
Version | Description |
---|---|
4.7 | Introduced. |