# wordpress-seo/28.1/src/myyoast-client/infrastructure/wordpress/site-url-provider.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 28.1. 22 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.1/code/src/myyoast-client/infrastructure/wordpress/site-url-provider.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.1/raw/src/myyoast-client/infrastructure/wordpress/site-url-provider.php
- Modified: 2026-05-12T12:03:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/28.1/code/src/myyoast-client/infrastructure/wordpress/site-url-provider.php#L10-L20`.

```php
<?php
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\MyYoast_Client\Infrastructure\WordPress;

use Yoast\WP\SEO\MyYoast_Client\Application\Ports\Site_URL_Provider_Interface;

/**
 * WordPress implementation of the site URL provider.
 */
class Site_URL_Provider implements Site_URL_Provider_Interface {

	/**
	 * Returns the site URL.
	 *
	 * @return string The site URL.
	 */
	public function get(): string {
		return \site_url();
	}
}

```
