File: //homepages/oneclick/WordPress/6.9/601/custom/wordpress/wp-content/plugins/ionos-sso/ionos-sso.php
<?php
/**
* Plugin Name: IONOS Login
* Plugin URI: https://www.ionos.com
* Description: IONOS Login allows you to login with your IONOS customer ID and password through the IONOS Control Panel login page. You then have an active session in both your WordPress and your Control Panel and can jump easily from one to the other.
* Version: 2.2.1
* License: GPLv2 or later
* Author: IONOS
* Author URI: https://www.ionos.com
* Text Domain: ionos-sso
* Domain Path: /languages
*
* @package ionos-sso
*/
namespace Ionos\SSO;
use Ionos\Sso\Options;
use Ionos\Sso\Config;
use Ionos\Sso\Warning;
use Ionos\Sso\Updater;
define( 'IONOS_SSO_FILE', __FILE__ );
define( 'IONOS_SSO_DIR', __DIR__ );
define( 'IONOS_SSO_BASE', plugin_basename( __FILE__ ) );
$ionos_sso_autoloader = __DIR__ . '/vendor/autoload.php';
if ( is_readable( $ionos_sso_autoloader ) ) {
require_once $ionos_sso_autoloader;
}
/**
* Init plugin.
*
* @return void
*/
function init() {
Options::set_tenant_and_plugin_name( 'ionos', 'sso' );
new Updater();
new Warning( 'ionos-sso' );
new Manager();
new Login();
}
add_action( 'plugins_loaded', __NAMESPACE__ . '\init' );
/**
* Plugin translation.
*
* @return void
*/
function load_textdomain() {
\load_plugin_textdomain(
'ionos-sso',
false,
\dirname( \plugin_basename( __FILE__ ) ) . '/languages/'
);
}
add_action( 'init', __NAMESPACE__ . '\load_textdomain' );