# upgrader_package_options

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

Тип: хук-фильтр.
Появился в версии: 4.3.0.

## Сигнатура

```php
apply_filters( 'upgrader_package_options', array $options )
```

## Описание

См. также «upgrader_process_complete».

## Параметры

- `$options` `array` — обязательный. Options used by the upgrader.
  
  - `package` string Package for update.
  
  - `destination` string Update location.
  
  - `clear_destination` bool Clear the destination resource.
  
  - `clear_working` bool Clear the working resource.
  
  - `abort_if_destination_exists` bool Abort if the Destination directory exists.
  
  - `is_multi` bool Whether the upgrader is running multiple times.
  
  - `hook_extra` array Extra hook arguments.
  
  - `action` string Type of action. Default `'update'`.
  
  - `type` string Type of update process. Accepts `'plugin'`, `'theme'`, or `'core'`.
  
  - `bulk` bool Whether the update process is a bulk update. Default true.
  
  - `plugin` string Path to the plugin file relative to the plugins directory.
  
  - `theme` string The stylesheet or template name of the theme.
  
  - `language_update_type` string The language pack update type. Accepts `'plugin'`, `'theme'`, or `'core'`.
  
  - `language_update` object The language pack update offer.
  
  [Source](#source)
  
  ```
  $options = apply_filters( 'upgrader_package_options', $options );
  ```
  
  [View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-upgrader.php/) [View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-wp-upgrader.php#L818) [View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-upgrader.php#L818-L818)
  
  [Related](#related) Used by | Description |
  [WP_Upgrader::run()](https://developer.wordpress.org/reference/classes/wp_upgrader/run/)`wp-admin/includes/class-wp-upgrader.php` | Runs an upgrade/installation.
  |
  
  [Changelog](#changelog) Version | Description |
  [4.3.0](https://developer.wordpress.org/reference/since/4.3.0/) | Introduced. |

## Фильтруемое значение

Options used by the upgrader.

- `package` string Package for update.

- `destination` string Update location.

- `clear_destination` bool Clear the destination resource.

- `clear_working` bool Clear the working resource.

- `abort_if_destination_exists` bool Abort if the Destination directory exists.

- `is_multi` bool Whether the upgrader is running multiple times.

- `hook_extra` array Extra hook arguments.

- `action` string Type of action. Default `'update'`.

- `type` string Type of update process. Accepts `'plugin'`, `'theme'`, or `'core'`.

- `bulk` bool Whether the update process is a bulk update. Default true.

- `plugin` string Path to the plugin file relative to the plugins directory.

- `theme` string The stylesheet or template name of the theme.

- `language_update_type` string The language pack update type. Accepts `'plugin'`, `'theme'`, or `'core'`.

- `language_update` object The language pack update offer.

[Source](#source)

```
$options = apply_filters( 'upgrader_package_options', $options );
```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-upgrader.php/) [View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-wp-upgrader.php#L818) [View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-upgrader.php#L818-L818)

[Related](#related) Used by | Description |
[WP_Upgrader::run()](https://developer.wordpress.org/reference/classes/wp_upgrader/run/)`wp-admin/includes/class-wp-upgrader.php` | Runs an upgrade/installation.
|

[Changelog](#changelog) Version | Description |
[4.3.0](https://developer.wordpress.org/reference/since/4.3.0/) | Introduced. |

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

Файл: `wp-admin/includes/class-wp-upgrader.php:818`

```php
$options = apply_filters( 'upgrader_package_options', $options );
```

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

- 4.3.0 — Introduced.

## Связанные

Используется в: `WP_Upgrader::run`.

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