You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
813 B
38 lines
813 B
<?php |
|
/** |
|
* WPSEO plugin file. |
|
* |
|
* @package WPSEO\Admin\Capabilities |
|
*/ |
|
|
|
/** |
|
* Capability Manager interface. |
|
*/ |
|
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(); |
|
}
|
|
|