WPSEO_Role_Manager_Factory::get()public staticYoast 1.0

Retrieves the Role manager to use.

Метод класса: WPSEO_Role_Manager_Factory{}

Хуков нет.

Возвращает

WPSEO_Role_Manager.

Использование

$result = WPSEO_Role_Manager_Factory::get();

Код WPSEO_Role_Manager_Factory::get() Yoast 19.11

public static function get() {
	static $manager = null;

	if ( $manager === null ) {
		$manager = new WPSEO_Role_Manager_WP();
	}

	return $manager;
}