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

Filters the update response for a given plugin hostname.


Description

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


Parameters

$update

The plugin update data with the latest details. Default false.<br>

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

$plugin_data

Plugin headers.

$plugin_file

Plugin filename.

$locales

Installed locales to look up translations for.


Source

File: wp-includes/update.php

View on GitHub


Changelog

Changelog
Version Description
5.8.0 Introduced.