Yoast\WP\SEO\MyYoast_Client\User_Interface
Connection_Permission::can_manage
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() Connection Permission::can manage Yoast 28.7
public function can_manage(): bool {
return \current_user_can( self::MANAGE_CAPABILITY );
}