Event_Meta::get_host_email( WP_Post $event )

Get the host email 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_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 );
	}

Top ↑

Changelog

Changelog
Version Description
1.4.0 Introduced.