INSTAGRAM_PUBLISH_PHOTO::__construct()


Source

File: src/integrations/instagram/actions/instagram-publish-photo.php

	public function __construct() {
		$this->ig_pages_wp_ajax_endpoint = 'ig_pages_wp_ajax_endpoint_post_link';
		$this->fb_endpoint_uri = AUTOMATOR_API_URL . 'v2/facebook';
		// Allow overwrite in wp-config.php.
		if ( DEFINED( 'UO_AUTOMATOR_DEV_FB_ENDPOINT_URL' ) ) {
			$this->fb_endpoint_uri = UO_AUTOMATOR_DEV_FB_ENDPOINT_URL;
		}
		add_action( "wp_ajax_{$this->ig_pages_wp_ajax_endpoint}", array( $this, $this->ig_pages_wp_ajax_endpoint ) );
		$this->setup_action();
	}