Tribe__Tickets_Plus__Meta__Storage::get_transient_name( null|int $id = null, null|string $hash_key = null )

Gets the transient name to use and combines with the hash key.


Parameters

$id

(null|int) (Optional) The ticket ID.

Default value: null

$hash_key

(null|string) (Optional) The hash key.

Default value: null


Top ↑

Return

(string|null) The transient name or null if not found.


Top ↑

Source

File: src/Tribe/Meta/Storage.php

	public function get_transient_name( $id = null, $hash_key = null ) {
		if ( null === $hash_key ) {
			// Get the hash key from the cookie.
			$hash_key = $this->get_hash_cookie( $id );
		}

		if ( empty( $hash_key ) ) {
			return null;
		}

		return self::TRANSIENT_PREFIX . $hash_key;
	}

Top ↑

Changelog

Changelog
Version Description
4.11.0 Introduced.