Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: update_themes_{$hostname}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
784            *                                  Should be a date in the `YYYY-MM-DD HH:MM:SS` format.
785            *         @type string $package    The ZIP location containing the translation update.
786            *         @type string $autoupdate Whether the translation should be automatically installed.
787            *     }
788            * }
789            * @param array       $theme_data       Theme headers.
790            * @param string      $theme_stylesheet Theme stylesheet.
791            * @param string[]    $locales          Installed locales to look up translations for.
792            */
793           $update = apply_filters( "update_themes_{$hostname}", false, $theme_data, $theme_stylesheet, $locales );
794
795           if ( ! $update ) {
796                continue;
797           }
798
799           $update = (object) $update;
800
801           // Is it valid? We require at least a version.
802           if ( ! isset( $update->version ) ) {