Add_Instagram_Integration::add_integration_func()

Registers Integration.


Source Source

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

	public function add_integration_func() {

		$ig_account_connected_count = $this->get_total_ig_accounts_connected();

		if ( $ig_account_connected_count >= 1 ) {
			$this->connected = true;
		}

		// Set up integration configuration.
		$integration_config = array(
			'name'         => 'Instagram',
			'icon_svg'     => Utilities::automator_get_integration_icon( __DIR__ . '/img/instagram-icon.svg' ),
			'connected'    => $this->connected,
			'settings_url' => admin_url( 'edit.php' ) . '?post_type=uo-recipe&page=uncanny-automator-settings&tab=instagram_api',
		);

		// Register the integration into Automator.
		Automator()->register->integration( self::$integration, $integration_config );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.