# wp_is_auto_update_forced_for_item()

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

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

## Сигнатура

```php
wp_is_auto_update_forced_for_item( string $type, bool|null $update, object $item ): bool
```

## Описание

Проверяет, принудительно ли включены автообновления для элемента.

## Параметры

- `$type` `string` — обязательный. Тип проверяемого обновления: 'theme' или 'plugin'.
- `$update` `bool|null` — обязательный. Следует ли выполнять обновление. Значение null используется внутренне для определения того, что ни один обработчик не подключился к этому фильтру.
- `$item` `object` — обязательный. Предложение обновления.

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

`bool` — $item

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

Файл: `wp-admin/includes/update.php:1087`

```php
function wp_is_auto_update_forced_for_item( $type, $update, $item ) {
	/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
	return apply_filters( "auto_update_{$type}", $update, $item );
}
```

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

- 5.6.0 — Introduced.

## Связанные

Использует: [`apply_filters`](https://chugunov.pro/api-wordpress/functions/apply_filters/).
Используется в: `WP_Debug_Data::get_wp_active_theme`, `WP_Debug_Data::get_wp_parent_theme`, `WP_Debug_Data::get_wp_themes_inactive`, `WP_Debug_Data::get_wp_plugins_raw_data`, `WP_Site_Health::detect_plugin_theme_auto_update_issues`, [`wp_prepare_themes_for_js`](https://chugunov.pro/api-wordpress/functions/wp_prepare_themes_for_js/), `WP_Plugins_List_Table::prepare_items`, `WP_MS_Themes_List_Table::prepare_items`.

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