Tribe__Tickets__RSVP::generate_security_code( int $attendee_id )

Generates the validation code that will be printed in the ticket.

Its purpose is to be used to validate the ticket at the door of an event.


Parameters

$attendee_id

(int) (Required)


Top ↑

Return

(string)


Top ↑

Source

File: src/Tribe/RSVP.php

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

Top ↑

Changelog

Changelog
Version Description
4.7 Introduced.