Add_Zoom_Webinar_Integration::add_integration_func()

Register the integration by pushing it into the global automator object


Source Source

File: src/integrations/zoom-webinar/add-zoom-webinar-integration.php

	public function add_integration_func() {

		$client = get_option( '_uncannyowl_zoom_webinar_settings', array() );

		if ( isset( $client['access_token'] ) && ! empty( $client['access_token'] ) ) {
			$this->connected = true;
		}

		Automator()->register->integration(
			self::$integration,
			array(
				'name'         => 'Zoom Webinars',
				'icon_svg'     => Utilities::automator_get_integration_icon( __DIR__ . '/img/zoom-icon.svg' ),
				'connected'    => $this->connected,
				'settings_url' => admin_url( 'edit.php' ) . '?post_type=uo-recipe&page=uncanny-automator-settings&tab=zoom_webinar_api',
			)
		);

	}