Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: update_plugins_{$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
465            *                                  Should be a date in the `YYYY-MM-DD HH:MM:SS` format.
466            *         @type string $package    The ZIP location containing the translation update.
467            *         @type string $autoupdate Whether the translation should be automatically installed.
468            *     }
469            * }
470            * @param array       $plugin_data      Plugin headers.
471            * @param string      $plugin_file      Plugin filename.
472            * @param array       $locales          Installed locales to look translations for.
473            */
474           $update = apply_filters( "update_plugins_{$hostname}", false, $plugin_data, $plugin_file, $locales );
475
476           if ( ! $update ) {
477                continue;
478           }
479
480           $update = (object) $update;
481
482           // Is it valid? We require at least a version.
483           if ( ! isset( $update->version ) ) {