Add_Gtw_Integration::add_integration_func()

Register the integration by pushing it into the global automator object


Source Source

File: src/integrations/gotowebinar/add-gtw-integration.php

	public function add_integration_func() {
		// check if Consumer Key and Consumer Secret available
		$gtw_options = get_option( '_uncannyowl_gtw_settings', array() );
		Automator()->register->integration(
			self::$integration,
			array(
				'name'         => 'GoTo Webinar',
				'icon_svg'     => Utilities::automator_get_integration_icon( __DIR__ . '/img/gotowebinar-icon.svg' ),
				'connected'    => isset( $gtw_options['refresh_token'] ) && ! empty( $gtw_options['refresh_token'] ),
				'settings_url' => automator_get_premium_integrations_settings_url( 'go-to-webinar' ),
			)
		);
	}