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.
This hook occurs 4 times in this file.
| Line | Code |
|---|---|
| 367 | $this->skin->feedback('process_failed'); |
| 368 | } else { |
| 369 | //Install Succeeded |
| 370 | $this->skin->feedback('process_success'); |
| 371 | } |
| 372 | |
| 373 | $this->skin->after(); |
| 374 | |
| 375 | if ( ! $is_multi ) { |
| 376 | do_action( 'upgrader_process_complete', $this, $hook_extra ); |
| 377 | $this->skin->footer(); |
| 378 | } |
| 379 | |
| 380 | return $result; |
| 381 | } |
| 382 | |
| 383 | function maintenance_mode($enable = false) { |
| 384 | global $wp_filesystem; |
| 385 | $file = $wp_filesystem->abspath() . '.maintenance'; |
| Line | Code |
| 587 | $results[$plugin] = $this->result; |
| 588 | |
| 589 | // Prevent credentials auth screen from displaying multiple times |
| 590 | if ( false === $result ) |
| 591 | break; |
| 592 | } //end foreach $plugins |
| 593 | |
| 594 | $this->maintenance_mode(false); |
| 595 | |
| 596 | do_action( 'upgrader_process_complete', $this, array( |
| 597 | 'action' => 'update', |
| 598 | 'type' => 'plugin', |
| 599 | 'bulk' => true, |
| 600 | 'plugins' => $plugins, |
| 601 | ) ); |
| 602 | |
| 603 | $this->skin->bulk_footer(); |
| 604 | |
| 605 | $this->skin->footer(); |
| Line | Code |
| 970 | $results[$theme] = $this->result; |
| 971 | |
| 972 | // Prevent credentials auth screen from displaying multiple times |
| 973 | if ( false === $result ) |
| 974 | break; |
| 975 | } //end foreach $plugins |
| 976 | |
| 977 | $this->maintenance_mode(false); |
| 978 | |
| 979 | do_action( 'upgrader_process_complete', $this, array( |
| 980 | 'action' => 'update', |
| 981 | 'type' => 'theme', |
| 982 | 'bulk' => true, |
| 983 | 'themes' => $themes, |
| 984 | ) ); |
| 985 | |
| 986 | $this->skin->bulk_footer(); |
| 987 | |
| 988 | $this->skin->footer(); |
| Line | Code |
| 1405 | apply_filters( 'update_feedback', $this->strings['start_rollback'] ); |
| 1406 | |
| 1407 | $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) ); |
| 1408 | |
| 1409 | $original_result = $result; |
| 1410 | $result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], (object) array( 'update' => $original_result, 'rollback' => $rollback_result ) ); |
| 1411 | } |
| 1412 | } |
| 1413 | |
| 1414 | do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) ); |
| 1415 | |
| 1416 | // Clear the current updates |
| 1417 | delete_site_transient( 'update_core' ); |
| 1418 | |
| 1419 | if ( ! $parsed_args['do_rollback'] ) { |
| 1420 | $stats = array( |
| 1421 | 'update_type' => $current->response, |
| 1422 | 'success' => true, |
| 1423 | 'fs_method' => $wp_filesystem->method, |