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
$updatearray|false
{ The plugin update data with the latest details. Default false. @type string $id Optional. ID of the plugin for update purposes, should be a URI specified in the Update URI header field. @type string $slug Slug of the plugin. @type string $version The version of the plugin. @type string $url The URL for details of the plugin. @type string $package Optional. The update ZIP for the plugin. @type string $tested Optional. The version of WordPress the plugin is tested against. @type string $requires_php Optional. The version of PHP which the plugin requires. @type bool $autoupdate Optional. Whether the plugin should automatically update. @type string[] $icons Optional. Array of plugin icons. @type string[] $banners Optional. Array of plugin banners. @type string[] $banners_rtl Optional. Array of plugin RTL banners. @type array $translations { Optional. List of translation updates for the plugin. @type string $language The language the translation update is for. @type string $version The version of the plugin this translation is for. This is not the version of the language file. @type string $updated The update timestamp of the translation file. Should be a date in the YYYY-MM-DD HH:MM:SS format. @type string $package The ZIP location containing the translation update. @type string $autoupdate Whether the translation should be automatically installed. } }
$idstring
Optional. ID of the plugin for update purposes, should be a URI specified in the Update URI header field.
$slugstring
Slug of the plugin.
$versionstring
The version of the plugin.
$urlstring
The URL for details of the plugin.
$packagestring
Optional. The update ZIP for the plugin.
$testedstring
Optional. The version of WordPress the plugin is tested against.
$requires_phpstring
Optional. The version of PHP which the plugin requires.
$autoupdatebool
Optional. Whether the plugin should automatically update.
$iconsstring[]
Optional. Array of plugin icons.
$bannersstring[]
Optional. Array of plugin banners.
$banners_rtlstring[]
Optional. Array of plugin RTL banners.
$translationsarray
Optional. List of translation updates for the plugin.
$languagestring
The language the translation update is for.
$versionstring
The version of the plugin this translation is for. This is not the version of the language file.
$updatedstring
The update timestamp of the translation file. Should be a date in the YYYY-MM-DD HH:MM:SS format.
$packagestring
The ZIP location containing the translation update.
$autoupdatestring
Whether the translation should be automatically installed.