HEX
Server: Apache
System: Linux www 6.18.4-i1-ampere #899 SMP Thu Jan 8 10:39:05 CET 2026 aarch64
User: sws1073818588 (1073818588)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/www/public/wp-content/plugins/ionos-essentials/ionos-essentials.php
<?php

/**
 * Plugin Name:       Essentials
 * Description:       The essentials plugin provides IONOS hosting specific functionality.
 * Requires at least: 6.6
 * Requires Plugins:
 * Requires PHP:      7.4
 * Version:           1.2.0
 * Update URI:        https://github.com/IONOS-WordPress/ionos-wordpress/releases/download/%40ionos-wordpress%2Flatest/ionos-essentials-info.json
 * Plugin URI:        https://github.com/IONOS-WordPress/ionos-wordpress/tree/main/packages/wp-plugin/ionos-essentials
 * License:           GPL-2.0-or-later
 * Author:            IONOS Group
 * Author URI:        https://www.ionos-group.com/brands.html
 * Domain Path:       /languages
 * Text Domain:       ionos-essentials
 */

namespace ionos\essentials;

const PLUGIN_FILE = __FILE__;
const PLUGIN_DIR  = __DIR__;

defined('ABSPATH') || exit();

\add_action(
  'init',
  function () {
    if (__DIR__ === WPMU_PLUGIN_DIR) {
      \load_muplugin_textdomain('ionos-essentials', 'ionos-essentials/languages/');
    } else {
      \load_plugin_textdomain('ionos-essentials', false, 'ionos-essentials/ionos-essentials/languages/');
    }
  }
);

require_once __DIR__ . '/ionos-essentials/inc/class-tenant.php';
require_once __DIR__ . '/ionos-essentials/inc/update/index.php';

// soc plugin components
require_once __DIR__ . '/ionos-essentials/inc/migration/index.php';

// features
require_once __DIR__ . '/ionos-essentials/inc/switch-page/index.php';
require_once __DIR__ . '/ionos-essentials/inc/dashboard/index.php';
require_once __DIR__ . '/ionos-essentials/inc/descriptify/index.php';
require_once __DIR__ . '/ionos-essentials/inc/jetpack-flow/index.php';
require_once __DIR__ . '/ionos-essentials/inc/login/index.php';
require_once __DIR__ . '/ionos-essentials/inc/security/index.php';
require_once __DIR__ . '/ionos-essentials/inc/maintenance_mode/index.php';
require_once __DIR__ . '/ionos-essentials/inc/wpscan/index.php';
require_once __DIR__ . '/ionos-essentials/inc/extendify/index.php';

// soc plugin components
require_once __DIR__ . '/ionos-essentials/inc/migration/index.php';

function is_stretch(): bool
{
  return strncmp(getcwd(), '/home/www/public', strlen('/home/www/public')) === 0;
}

// TODO: evaluate for other tenants than IONOS

// \add_filter(
//   'gettext_ionos-essentials',
//   function ($text) {
//     if ( ! str_contains($text, 'IONOS')) {
//       return $text;
//     }
//     $brand_name = \get_option('ionos_brand_name', 'IONOS');
//     // TODO: replace more? menu_brand, non capital, ...
//     return str_replace('IONOS', $brand_name, $text);
//   }
// );