|
Server : LiteSpeed System : Linux server900.shared.spaceship.host 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64 User : kvzyqrttyz ( 5084) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/kvzyqrttyz/monologtogel.com/wp-content/plugins/wordpress-seo/src/helpers/ | |
|
Path: /home/kvzyqrttyz/monologtogel.com/wp-content/plugins/wordpress-seo/src/helpers/home-url-helper.php
Size: 681 B
Permissions: 0644
<?php
namespace Yoast\WP\SEO\Helpers;
/**
* A helper object for the home URL.
*/
class Home_Url_Helper {
/**
* The home url.
*
* @var string
*/
protected static $home_url;
/**
* The parsed home url.
*
* @var array
*/
protected static $parsed_home_url;
/**
* Retrieves the home url.
*
* @return string The home url.
*/
public function get() {
static::$home_url ??= \home_url();
return static::$home_url;
}
/**
* Retrieves the home url that has been parsed.
*
* @return array The parsed url.
*/
public function get_parsed() {
static::$parsed_home_url ??= \wp_parse_url( $this->get() );
return static::$parsed_home_url;
}
}