# current_user_can_for_blog()

URL: https://chugunov.pro/api-wordpress/functions/current_user_can_for_blog/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 3.0.0.

> Устаревший элемент. Помечен устаревшим с версии 6.7.0.

## Сигнатура

```php
current_user_can_for_blog( int $blog_id, string $capability, mixed $args ): bool
```

## Описание

Возвращает, обладает ли текущий пользователь указанным правом доступа для данного сайта.

## Параметры

- `$blog_id` `int` — обязательный. ID сайта.
- `$capability` `string` — обязательный. Имя права доступа.
- `$args` `mixed` — необязательный. Необязательные дополнительные параметры, обычно начинающиеся с ID объекта.

## Возвращаемое значение

`bool`

## Исходный код

Файл: `wp-includes/deprecated.php:6419`

```php
function current_user_can_for_blog( $blog_id, $capability, ...$args ) {
	return current_user_can_for_site( $blog_id, $capability, ...$args );
}
```

## История изменений

- 6.7.0 — Deprecated. Use current_user_can_for_site() instead.
- 5.8.0 — Wraps current_user_can() after switching to blog.
- 5.3.0 — Formalized the existing and already documented ...$args parameter by adding it to the function signature.
- 3.0.0 — Introduced.

## Связанные

Использует: [`current_user_can_for_site`](https://chugunov.pro/api-wordpress/functions/current_user_can_for_site/).

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/current_user_can_for_blog/
