Add_Zoom_Integration::add_integration_func()

Register the integration by pushing it into the global automator object


Source Source

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

	public function add_integration_func() {

		$zoom_client = get_option( '_uncannyowl_zoom_settings', array() );

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

		Automator()->register->integration(
			self::$integration,
			array(
				'name'         => 'Zoom Meetings',
				'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_api',
			)
		);

	}