WPSEO_Role_Manager_Factory{}Yoast 1.0

Role Manager Factory.

Хуков нет.

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

$WPSEO_Role_Manager_Factory = new WPSEO_Role_Manager_Factory();
// use class methods

Методы

  1. public static get()

Код WPSEO_Role_Manager_Factory{} Yoast 22.3

class WPSEO_Role_Manager_Factory {

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

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

		return $manager;
	}
}