WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
502 | * Should be a date in the `YYYY-MM-DD HH:MM:SS` format. |
503 | * @type string $package The ZIP location containing the translation update. |
504 | * @type string $autoupdate Whether the translation should be automatically installed. |
505 | * } |
506 | * } |
507 | * @param array $plugin_data Plugin headers. |
508 | * @param string $plugin_file Plugin filename. |
509 | * @param string[] $locales Installed locales to look up translations for. |
510 | */ |
511 | $update = apply_filters( "update_plugins_{$hostname}", false, $plugin_data, $plugin_file, $locales ); |
512 |
|
513 | if ( ! $update ) { |
514 | continue; |
515 | } |
516 |
|
517 | $update = (object) $update; |
518 |
|
519 | // Is it valid? We require at least a version. |
520 | if ( ! isset( $update->version ) ) { |