Event_Meta::get_host_email( WP_Post $event )
Get the host email 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_host_email( WP_Post $event ) {
$encryption = tribe( Encryption::class );
$prefix = Virtual_Event_Meta::$prefix;
$host_email = $encryption->decrypt( get_post_meta( $event->ID, $prefix . 'zoom_host_email', true ) );
if ( $host_email ) {
return $host_email;
}
$all_zoom_details = $encryption->decrypt( get_post_meta( $event->ID, $prefix . 'zoom_meeting_data', true ) );
return Arr::get( $all_zoom_details, 'host_email', null );
}
Changelog
| Version | Description |
|---|---|
| 1.4.0 | Introduced. |