Tribe__Events__Community__Integrations__Virtual_Events::maybe_allow_meeting_link_generation( boolean $allow_generation )

Maybe allow meeting link generation.


Parameters #

$allow_generation

(boolean) (Required) Whether to allow meeting link generation.


Top ↑

Return #

(boolean) Whether to allow meeting link generation.


Top ↑

Source #

File: src/Tribe/Integrations/Virtual_Events.php

	public function maybe_allow_meeting_link_generation( $allow_generation ) {
		if ( false === $allow_generation ) {
			return $allow_generation;
		}

		// Don't allow meeting link generation from the frontend or if they are not a site admin.
		if ( ! is_admin() || ( ! is_super_admin() && ! current_user_can( 'manage_options' ) ) ) {
			return false;
		}

		return $allow_generation;
	}