WPSEO_Utils::get_home_url()
Returns the unfiltered home URL.
In case WPML is installed, returns the original home_url and not the WPML version. In case of a multisite setup we return the network_home_url.
Метод класса: WPSEO_Utils{}
Хуков нет.
Возвращает
Строку
. The home url.
Использование
$result = WPSEO_Utils::get_home_url();
Код WPSEO_Utils::get_home_url() WPSEO Utils::get home url Yoast 24.9
public static function get_home_url() { return YoastSEO()->helpers->url->network_safe_home_url(); }