Add_Facebook_Groups_Integration::add_integration_func()

Registers Integration.


Source Source

File: src/integrations/facebook-groups/add-facebook-groups-integration.php

	public function add_integration_func() {

		$settings = get_option( '_uncannyowl_facebook_group_settings', false );

		// Set up configuration.
		$integration_config = array(
			'name'         => 'Facebook Groups',
			'icon_svg'     => Utilities::automator_get_integration_icon( __DIR__ . '/img/facebook-icon.svg' ),
			'connected'    => isset( $settings ) && ! empty( $settings['user']['id'] ),
			'settings_url' => automator_get_premium_integrations_settings_url( 'facebook-groups' ),
		);

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

	}


Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.