Event_Meta::get_alt_host_emails( WP_Post $event )

Get the alternative host emails from the meta or saved Zoom data.


Parameters

$event

(WP_Post) (Required) The event post object, as decorated by the tribe_get_event function.


Top ↑

Return

(string|null) The found host email or null for the meeting.


Top ↑

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', '' );
	}

Top ↑

Changelog

Changelog
Version Description
1.4.0 Introduced.