# wordpress-seo/28.2/admin/roles/class-role-manager-factory.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.2/code/admin/roles/class-role-manager-factory.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.2/raw/admin/roles/class-role-manager-factory.php
- Modified: 2026-02-17T12:17: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/28.2/code/admin/roles/class-role-manager-factory.php#L10-L20`.

```php
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin\Roles
 */

/**
 * Role Manager Factory.
 */
class WPSEO_Role_Manager_Factory {

	/**
	 * Retrieves the Role manager to use.
	 *
	 * @return WPSEO_Role_Manager
	 */
	public static function get() {
		static $manager = null;

		$manager ??= new WPSEO_Role_Manager_WP();

		return $manager;
	}
}

```
