getDomain(); $originalDomain = $multipleDomain->getOriginalDomain(); $domainLang = $multipleDomain->getDomainLang(); /** * The current domain. * * Since this value is checked against plugin settings, it may not reflect the * actual domain in `HTTP_HOST` element from `$_SERVER`. It also may include * the host port when it's different than 80 (default HTTP port) or 443 * (default HTTPS port). * * @var string * @since 1.0.2 */ define('MULTIPLE_DOMAIN_DOMAIN', $domain); /** * The original domain set in WordPress installation. * * @var string * @since 1.0.2 */ define('MULTIPLE_DOMAIN_ORIGINAL_DOMAIN', $originalDomain); /** * The current domain language. * * This value is the language associated with the current domain in the plugin * settings. No check is made to verifiy if it reflects the actual user * language or locale. Also, notice this constant may be `null` when no * language is set in the plugin config. * * @var string * @since 1.0.2 */ define('MULTIPLE_DOMAIN_DOMAIN_LANG', $domainLang); /** * Keeping back compability with prior versions. * * This constant will be removed in a future release. * * @var string * @since 0.2 * @see MULTIPLE_DOMAIN_DOMAIN * @deprecated */ define('MULTPLE_DOMAIN_DOMAIN', MULTIPLE_DOMAIN_DOMAIN); /** * Keeping back compability with prior versions. * * This constant will be removed in a future release. * * @var string * @since 0.3 * @see MULTIPLE_DOMAIN_ORIGINAL_DOMAIN * @deprecated */ define('MULTPLE_DOMAIN_ORIGINAL_DOMAIN', MULTIPLE_DOMAIN_ORIGINAL_DOMAIN); /** * Keeping back compability with prior versions. * * This constant will be removed in a future release. * * @var string * @since 0.8 * @see MULTIPLE_DOMAIN_DOMAIN_LANG * @deprecated */ define('MULTPLE_DOMAIN_DOMAIN_LANG', MULTIPLE_DOMAIN_DOMAIN_LANG);