/var/www/p4ela.net/www/wp-content/plugins/image-optimization/modules/connect-manager
Edit: /var/www/p4ela.net/www/wp-content/plugins/image-optimization/modules/connect-manager/module.php (1568B)
register_components();
// Load Connect Manager.
add_action( 'plugins_loaded', [ $this, 'load_connect_manager' ] );
}
/**
* Load Connect Manager
*
* Load the correct version of Connect Manager based on whether
* the user is already connected using legacy version or not.
*
* @return void
*/
public function load_connect_manager() {
if ( ImageOptimization\Modules\Connect\Module::is_active() ) {
$this->connect_instance = new Connect_Runner( new Connect() );
} else {
$this->connect_instance = new Connect_Runner( new Legacy_Connect() );
}
}
}