Tribe__Tickets_Plus__Commerce__WooCommerce__Main::generate_security_code( int $order_id, int $attendee_id = '' )

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

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


Parameters

$order_id

(int) (Required)

$attendee_id

(int) (Optional)

Default value: ''


Top ↑

Return

(string)


Top ↑

Source

File: src/Tribe/Commerce/WooCommerce/Main.php

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