# wordpress-seo/trunk/src/helpers/site-helper.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/trunk/code/src/helpers/site-helper.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/trunk/raw/src/helpers/site-helper.php
- Modified: 2021-03-22T13:43:50+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/trunk/code/src/helpers/site-helper.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Helpers;

/**
 * A helper object for site options.
 */
class Site_Helper {

	/**
	 * Retrieves the site name.
	 *
	 * @return string
	 */
	public function get_site_name() {
		return \wp_strip_all_tags( \get_bloginfo( 'name' ), true );
	}

	/**
	 * Checks if the current installation is a multisite and there has been a switch
	 * between the set multisites.
	 *
	 * @return bool True when there was a switch between the multisites.
	 */
	public function is_multisite_and_switched() {
		return \is_multisite() && \ms_is_switched();
	}
}

```
