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 |
588 | $results[$plugin] = $this->result; |
589 |
|
590 | // Prevent credentials auth screen from displaying multiple times |
591 | if ( false === $result ) |
592 | break; |
593 | } //end foreach $plugins |
594 |
|
595 | $this->maintenance_mode(false); |
596 |
|
597 | do_action( 'upgrader_process_complete', $this, array( |
598 | 'action' => 'update', |
599 | 'type' => 'plugin', |
600 | 'bulk' => true, |
601 | 'plugins' => $plugins, |
602 | ) ); |
603 |
|
604 | $this->skin->bulk_footer(); |
605 |
|
606 | $this->skin->footer(); |
Line | Code |
971 | $results[$theme] = $this->result; |
972 |
|
973 | // Prevent credentials auth screen from displaying multiple times |
974 | if ( false === $result ) |
975 | break; |
976 | } //end foreach $plugins |
977 |
|
978 | $this->maintenance_mode(false); |
979 |
|
980 | do_action( 'upgrader_process_complete', $this, array( |
981 | 'action' => 'update', |
982 | 'type' => 'plugin', |
983 | 'bulk' => true, |
984 | 'themes' => $themes, |
985 | ) ); |
986 |
|
987 | $this->skin->bulk_footer(); |
988 |
|
989 | $this->skin->footer(); |
Line | Code |
1403 | apply_filters( 'update_feedback', $this->strings['start_rollback'] ); |
1404 |
|
1405 | $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) ); |
1406 |
|
1407 | $original_result = $result; |
1408 | $result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], (object) array( 'update' => $original_result, 'rollback' => $rollback_result ) ); |
1409 | } |
1410 | } |
1411 |
|
1412 | do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) ); |
1413 |
|
1414 | // Clear the current updates |
1415 | delete_site_transient( 'update_core' ); |
1416 |
|
1417 | if ( ! $parsed_args['do_rollback'] ) { |
1418 | $stats = array( |
1419 | 'update_type' => $current->response, |
1420 | 'success' => true, |
1421 | 'fs_method' => $wp_filesystem->method, |