Yoast\WP\SEO\MyYoast_Client\User_Interface

Connection_Permission::can_manage │ public │ Yoast 1.0

Whether the current HTTP user may manage the MyYoast connection.

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

Хуков нет.

Возвращает

bool.

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

$Connection_Permission = new Connection_Permission();
$Connection_Permission->can_manage(): bool;

Код Connection_Permission::can_manage() Yoast 28.7

public function can_manage(): bool {
	return \current_user_can( self::MANAGE_CAPABILITY );
}