WPSEO_Capability_Utils::has()protected staticYoast 1.0

Checks if the user has a certain capability.

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

Хуков нет.

Возвращает

true|false. True if the user has the capability.

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

$result = WPSEO_Capability_Utils::has( $capability );
$capability(строка) (обязательный)
Capability to check against.

Код WPSEO_Capability_Utils::has() Yoast 19.10

protected static function has( $capability ) {
	return current_user_can( $capability );
}