Module::get_key( string $key )
Returns the value of a key defined by the class.
Contents
Parameters
- $key
-
(string) (Required)
Return
(string) The key value or an empty string if not defined.
Source
File: src/Tickets/Commerce/Module.php
public static function get_key( $key ) {
$instance = self::get_instance();
$key = strtolower( $key );
$constant_map = [
'attendee_event_key' => $instance->attendee_event_key,
'attendee_product_key' => $instance->attendee_product_key,
'attendee_order_key' => $instance->order_key,
'attendee_optout_key' => $instance->attendee_optout_key,
'event_key' => $instance->get_event_key(),
'checkin_key' => $instance->checkin_key,
'order_key' => $instance->order_key,
];
return \Tribe__Utils__Array::get( $constant_map, $key, '' );
}
Changelog
| Version | Description |
|---|---|
| 5.1.9 | Introduced. |