WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

WPSEO_Capability_Manager_VIP::remove() public Yoast 1.0

Removes the registered capabilities from the system

{} Это метод класса: WPSEO_Capability_Manager_VIP{}

Хуков нет.

Возвращает

null.

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

$WPSEO_Capability_Manager_VIP = new WPSEO_Capability_Manager_VIP();
$WPSEO_Capability_Manager_VIP->remove();

Код WPSEO_Capability_Manager_VIP::remove() Yoast 15.1.1

<?php
public function remove() {
	// Remove from any role it has been added to.
	$roles = wp_roles()->get_names();
	$roles = array_keys( $roles );

	$role_capabilities = [];
	foreach ( array_keys( $this->capabilities ) as $capability ) {
		// Allow filtering of roles.
		$role_capabilities = $this->get_role_capabilities( $role_capabilities, $capability, $roles );
	}

	foreach ( $role_capabilities as $role => $capabilities ) {
		wpcom_vip_remove_role_caps( $role, $capabilities );
	}
}