WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
класс не описан

WPSEO_Capability_Manager{} Yoast 1.0

Capability Manager interface.

Хуков нет.

Возвращает

null. Ничего.

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

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

Методы

  1. add()
  2. get_capabilities()
  3. register( $capability, array $roles, $overwrite = false )
  4. remove()

Код WPSEO_Capability_Manager{} Yoast 16.1.1

<?php
interface WPSEO_Capability_Manager {

	/**
	 * Registers a capability.
	 *
	 * @param string $capability Capability to register.
	 * @param array  $roles      Roles to add the capability to.
	 * @param bool   $overwrite  Optional. Use add or overwrite as registration method.
	 */
	public function register( $capability, array $roles, $overwrite = false );

	/**
	 * Adds the registerd capabilities to the system.
	 */
	public function add();

	/**
	 * Removes the registered capabilities from the system.
	 */
	public function remove();

	/**
	 * Returns the list of registered capabilities.
	 *
	 * @return string[] List of registered capabilities.
	 */
	public function get_capabilities();
}