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 |
|---|---|
| 192 | extract($args); |
| 193 | |
| 194 | @set_time_limit( 300 ); |
| 195 | |
| 196 | if ( empty($source) || empty($destination) ) |
| 197 | return new WP_Error('bad_request', $this->strings['bad_request']); |
| 198 | |
| 199 | $this->skin->feedback('installing_package'); |
| 200 | |
| 201 | $res = apply_filters('upgrader_pre_install', true, $hook_extra); |
| 202 | if ( is_wp_error($res) ) |
| 203 | return $res; |
| 204 | |
| 205 | //Retain the Original source and destinations |
| 206 | $remote_source = $source; |
| 207 | $local_destination = $destination; |
| 208 | |
| 209 | $source_files = array_keys( $wp_filesystem->dirlist($remote_source) ); |
| 210 | $remote_destination = $wp_filesystem->find_folder($local_destination); |