On this page
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
$updatearray|false-
The plugin update data with the latest details. Default false.
idstringOptional. ID of the plugin for update purposes, should be a URI specified in theUpdate URIheader field.slugstringSlug of the plugin.versionstringThe version of the plugin.urlstringThe URL for details of the plugin.packagestringOptional. The update ZIP for the plugin.testedstringOptional. The version of WordPress the plugin is tested against.requires_phpstringOptional. The version of PHP which the plugin requires.autoupdateboolOptional. Whether the plugin should automatically update.iconsarrayOptional. Array of plugin icons.bannersarrayOptional. Array of plugin banners.banners_rtlarrayOptional. Array of plugin RTL banners.translationsarrayOptional. List of translation updates for the plugin.languagestringThe language the translation update is for.versionstringThe version of the plugin this translation is for.
This is not the version of the language file.updatedstringThe update timestamp of the translation file.
Should be a date in theYYYY-MM-DD HH:MM:SSformat.packagestringThe ZIP location containing the translation update.autoupdatestringWhether the translation should be automatically installed.
$plugin_dataarrayPlugin headers.$plugin_filestringPlugin filename.$localesstring[]Installed locales to look up translations for.Source
File:
wp-includes/update.php. View all references$update = apply_filters( "update_plugins_{$hostname}", false, $plugin_data, $plugin_file, $locales );Related
Used By
Used By Description wp_update_plugins() wp-includes/update.php Checks for available updates to plugins based on the latest versions hosted on WordPress.org.
Changelog
Version Description 5.8.0 Introduced.
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/update_plugins_hostname