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.
Contents
Parameters
- $id
-
(null|int) (Optional) The ticket ID.
Default value: null
- $hash_key
-
(null|string) (Optional) The hash key.
Default value: null
Return
(string|null) The transient name or null if not found.
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;
}
Changelog
| Version | Description |
|---|---|
| 4.11.0 | Introduced. |