Event_Meta::get_alt_host_emails( WP_Post $event )
Get the alternative host emails from the meta or saved Zoom data.
Contents
Parameters
- $event
-
(WP_Post) (Required) The event post object, as decorated by the
tribe_get_eventfunction.
Return
(string|null) The found host email or null for the meeting.
Source
File: src/Tribe/Meetings/Zoom/Event_Meta.php
public static function get_alt_host_emails( WP_Post $event ) {
$encryption = tribe( Encryption::class );
$prefix = Virtual_Event_Meta::$prefix;
$alternative_hosts = $encryption->decrypt( get_post_meta( $event->ID, $prefix . 'zoom_alternative_hosts', true ) );
if ( $alternative_hosts ) {
return $alternative_hosts;
}
$all_zoom_details = $encryption->decrypt( get_post_meta( $event->ID, $prefix . 'zoom_meeting_data', true ) );
$settings = Arr::get( $all_zoom_details, 'settings', [] );
return Arr::get( $settings, 'alternative_hosts', '' );
}
Changelog
| Version | Description |
|---|---|
| 1.4.0 | Introduced. |