WPSEO_Capability_Manager::register()publicYoast 1.0

Registers a capability.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WPSEO_Capability_Manager = new WPSEO_Capability_Manager();
$WPSEO_Capability_Manager->register( $capability, $roles, $overwrite );
$capability(строка) (обязательный)
Capability to register.
$roles(массив) (обязательный)
Roles to add the capability to.
$overwrite(true|false)
Use add or overwrite as registration method.
По умолчанию: false

Код WPSEO_Capability_Manager::register() Yoast 19.11

public function register( $capability, array $roles, $overwrite = false );