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
array|false- The plugin update data with the latest details. Default false.
id
stringOptional. ID of the plugin for update purposes, should be a URI specified in theUpdate URI
header field.slug
stringSlug of the plugin.version
stringThe version of the plugin.url
stringThe URL for details of the plugin.package
stringOptional. The update ZIP for the plugin.tested
stringOptional. The version of WordPress the plugin is tested against.requires_php
stringOptional. The version of PHP which the plugin requires.autoupdate
boolOptional. Whether the plugin should automatically update.icons
arrayOptional. Array of plugin icons.banners
arrayOptional. Array of plugin banners.banners_rtl
arrayOptional. Array of plugin RTL banners.translations
arrayOptional. List of translation updates for the plugin.language
stringThe language the translation update is for.version
stringThe version of the plugin this translation is for.
This is not the version of the language file.updated
stringThe update timestamp of the translation file.
Should be a date in theYYYY-MM-DD HH:MM:SS
format.package
stringThe ZIP location containing the translation update.autoupdate
stringWhether the translation should be automatically installed.
$plugin_data
arrayPlugin headers.$plugin_file
stringPlugin filename.$locales
string[]Installed locales to look up translations for.Source
$update = apply_filters( "update_plugins_{$hostname}", false, $plugin_data, $plugin_file, $locales );
Changelog
Version Description 5.8.0 Introduced.
User Contributed Notes
You must log in before being able to contribute a note or feedback.