Tribe__Image__Plus__PUE::load_plugin_update_engine()

Load the Plugin Update Engine

Topics


Source #

File: src/Tribe/PUE.php

	public function load_plugin_update_engine() {
		// if running an old version of TEC (pre embedded licensing), use the old update_url
		if ( version_compare( Tribe__Main::VERSION, '4.5.1', '<' ) ) {
			self::$update_url = 'https://theeventscalendar.com/';
		}

		if ( apply_filters( 'tribe_enable_pue', true, self::$pue_slug ) && class_exists( 'Tribe__PUE__Checker' ) ) {
			$this->pue_instance = new Tribe__PUE__Checker( self::$update_url, self::$pue_slug, array(), plugin_basename( self::$plugin_file ) );
		}
	}