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

$update

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

  • 'id'
    (string) Optional. ID of the theme for update purposes, should be a URI specified in the Update URI header field.<br>
  • 'theme'
    (string) Directory name of the theme.<br>
  • 'version'
    (string) The version of the theme.<br>
  • 'url'
    (string) The URL for details of the theme.<br>
  • 'package'
    (string) Optional. The update ZIP for the theme.<br>
  • 'tested'
    (string) Optional. The version of WordPress the theme is tested against.<br>
  • 'requires_php'
    (string) Optional. The version of PHP which the theme requires.<br>
  • 'autoupdate'
    (bool) Optional. Whether the theme should automatically update.<br>
  • 'translations'
    (array) Optional. List of translation updates for the theme.<br>
    • 'language'
      (string) The language the translation update is for.<br>
    • 'version'
      (string) The version of the theme 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>

$theme_data

Theme headers.

$theme_stylesheet

Theme stylesheet.

$locales

Installed locales to look up translations for.


Source

File: wp-includes/update.php

View on GitHub


Changelog

Changelog
Version Description
6.1.0 Introduced.