W3cubDocs

/WordPress

apply_filters( “update_themes_{$hostname}”, array|false $update, array $theme_data, string $theme_stylesheet, string[] $locales )

Filters the update response for a given theme 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 theme update data with the latest details. Default false.
  • id string
    Optional. ID of the theme for update purposes, should be a URI specified in the Update URI header field.
  • theme string
    Directory name of the theme.
  • version string
    The version of the theme.
  • url string
    The URL for details of the theme.
  • package string
    Optional. The update ZIP for the theme.
  • tested string
    Optional. The version of WordPress the theme is tested against.
  • requires_php string
    Optional. The version of PHP which the theme requires.
  • autoupdate bool
    Optional. Whether the theme should automatically update.
  • translations array
    Optional. List of translation updates for the theme.
    • language string
      The language the translation update is for.
    • version string
      The version of the theme 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.
    $theme_dataarray
    Theme headers.
    $theme_stylesheetstring
    Theme stylesheet.
    $localesstring[]
    Installed locales to look up translations for.

    Source

    $update = apply_filters( "update_themes_{$hostname}", false, $theme_data, $theme_stylesheet, $locales );
    

    Changelog

    Version Description
    6.1.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/update_themes_hostname