Title: update_plugins_{$hostname}
Published: July 20, 2021
Last modified: February 24, 2026

---

# apply_filters( “update_plugins_{$hostname}”, array|false $update, array $plugin_data, string $plugin_file, string[] $locales )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/update_plugins_hostname/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/update_plugins_hostname/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/update_plugins_hostname/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/update_plugins_hostname/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/update_plugins_hostname/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/update_plugins_hostname/?output_format=md#wp--skip-link--target)

Filters the update response for a given plugin hostname.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/update_plugins_hostname/?output_format=md#description)󠁿

The dynamic portion of the hook name, `$hostname`, refers to the hostname of the
URI specified in the `Update URI` header field.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/update_plugins_hostname/?output_format=md#parameters)󠁿

 `$update`array|false

The plugin update data with the latest details. Default false.

 * `id` string
 * Optional. ID of the plugin for update purposes, should be a URI specified in 
   the `Update URI` header field.
 * `slug` string
 * Slug of the plugin.
 * `version` string
 * The version of the plugin.
 * `url` string
 * The URL for details of the plugin.
 * `package` string
 * Optional. The update ZIP for the plugin.
 * `tested` string
 * Optional. The version of WordPress the plugin is tested against.
 * `requires_php` string
 * Optional. The version of PHP which the plugin requires.
 * `autoupdate` bool
 * Optional. Whether the plugin should automatically update.
 * `icons` string[]
 * Optional. Array of plugin icons.
 * `banners` string[]
 * Optional. Array of plugin banners.
 * `banners_rtl` string[]
 * Optional. Array of plugin RTL banners.
 * `translations` array
 *  Optional. List of translation updates for the plugin.
    - `language` string
    - The language the translation update is for.
    - `version` string
    - The version of the plugin this translation is for.
       This is not the version
      of the language file.
    - `updated` string
    - The update timestamp of the translation file.
       Should be a date in the `YYYY-
      MM-DD HH:MM:SS` format.
    - `package` string
    - The ZIP location containing the translation update.
    - `autoupdate` string
    - Whether the translation should be automatically installed.

`$plugin_data`array

Plugin headers.

`$plugin_file`string

Plugin filename.

`$locales`string[]

Installed locales to look up translations for.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/update_plugins_hostname/?output_format=md#source)󠁿

    ```php
    $update = apply_filters( "update_plugins_{$hostname}", false, $plugin_data, $plugin_file, $locales );
    ```

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

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/update_plugins_hostname/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_update_plugins()](https://developer.wordpress.org/reference/functions/wp_update_plugins/)`wp-includes/update.php` |

Checks for available updates to plugins based on the latest versions hosted on WordPress.org.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/update_plugins_hostname/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.8.0](https://developer.wordpress.org/reference/since/5.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fupdate_plugins_hostname%2F)
before being able to contribute a note or feedback.