EP_Config::get_host PHP Méthode

get_host() public méthode

Retrieve the appropriate host. Will default to EP_HOST constant if it exists
Since: 2.1
public get_host ( ) : string | boolean
Résultat string | boolean
    public function get_host()
    {
        if (defined('EP_HOST') && EP_HOST) {
            $host = EP_HOST;
        } elseif (defined('EP_IS_NETWORK') && EP_IS_NETWORK) {
            $host = get_site_option('ep_host', false);
        } else {
            $host = get_option('ep_host', false);
        }
        return $host;
    }