is_subdomain_install

The timeline below displays how wordpress function is_subdomain_install has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * These functions are needed to load Multisite.
 *
 * @since 3.0.0
 *
 * @package WordPress
 * @subpackage Multisite
 */
/**
 * Whether a subdomain configuration is enabled.
 *
 * @since 3.0.0
 *
 * @return bool True if subdomain configuration is enabled, false otherwise.
 */
function is_subdomain_install()
{
    if (defined('SUBDOMAIN_INSTALL')) {
        return SUBDOMAIN_INSTALL;
    }
    return defined('VHOST') && 'yes' === VHOST;
}

WordPress Version: 4.3

/**
 * These functions are needed to load Multisite.
 *
 * @since 3.0.0
 *
 * @package WordPress
 * @subpackage Multisite
 */
/**
 * Whether a subdomain configuration is enabled.
 *
 * @since 3.0.0
 *
 * @return bool True if subdomain configuration is enabled, false otherwise.
 */
function is_subdomain_install()
{
    if (defined('SUBDOMAIN_INSTALL')) {
        return SUBDOMAIN_INSTALL;
    }
    return defined('VHOST') && VHOST == 'yes';
}

WordPress Version: 3.7

/**
 * These functions are needed to load Multisite.
 *
 * @since 3.0.0
 *
 * @package WordPress
 * @subpackage Multisite
 */
/**
 * Whether a subdomain configuration is enabled.
 *
 * @since 3.0.0
 *
 * @return bool True if subdomain configuration is enabled, false otherwise.
 */
function is_subdomain_install()
{
    if (defined('SUBDOMAIN_INSTALL')) {
        return SUBDOMAIN_INSTALL;
    }
    if (defined('VHOST') && VHOST == 'yes') {
        return true;
    }
    return false;
}