Tribe__Tickets__Tickets::generate_security_code( string $attendee_id )

Generates the security code that will be used for printed tickets and QR codes.


Parameters

$attendee_id

(string) (Required) The attendee ID or another string to based the security code off of.


Top ↑

Return

(string) The generated security code.


Top ↑

Source

File: src/Tribe/Tickets.php

		public function generate_security_code( $attendee_id ) {
			return substr( md5( wp_rand() . '_' . $attendee_id ), 0, 10 );
		}

Top ↑

Changelog

Changelog
Version Description
4.7 Introduced.