WPSEO_Utils::get_home_url()public staticYoast 1.0

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() Yoast 22.4

public static function get_home_url() {
	return YoastSEO()->helpers->url->network_safe_home_url();
}