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 |
|---|---|
| 411 | //Install Succeeded |
| 412 | $this->skin->feedback('process_success'); |
| 413 | } |
| 414 | |
| 415 | $this->skin->after(); |
| 416 | |
| 417 | if ( ! $is_multi ) { |
| 418 | |
| 419 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
| 420 | do_action( 'upgrader_process_complete', $this, $hook_extra ); |
| 421 | $this->skin->footer(); |
| 422 | } |
| 423 | |
| 424 | return $result; |
| 425 | } |
| 426 | |
| 427 | function maintenance_mode($enable = false) { |
| 428 | global $wp_filesystem; |
| 429 | $file = $wp_filesystem->abspath() . '.maintenance'; |
| Line | Code |
| 647 | * @param array $data { |
| 648 | * Array of bulk item update data. |
| 649 | * |
| 650 | * @type string $action Type of action. Default 'update'. |
| 651 | * @type string $type Type of update process. Accepts 'plugin', 'theme', or 'core'. |
| 652 | * @type bool $bulk Whether the update process is a bulk update. Default true. |
| 653 | * @type array $packages Array of plugin, theme, or core packages to update. |
| 654 | * } |
| 655 | */ |
| 656 | do_action( 'upgrader_process_complete', $this, array( |
| 657 | 'action' => 'update', |
| 658 | 'type' => 'plugin', |
| 659 | 'bulk' => true, |
| 660 | 'plugins' => $plugins, |
| 661 | ) ); |
| 662 | |
| 663 | $this->skin->bulk_footer(); |
| 664 | |
| 665 | $this->skin->footer(); |
| Line | Code |
| 1031 | |
| 1032 | // Prevent credentials auth screen from displaying multiple times |
| 1033 | if ( false === $result ) |
| 1034 | break; |
| 1035 | } //end foreach $plugins |
| 1036 | |
| 1037 | $this->maintenance_mode(false); |
| 1038 | |
| 1039 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
| 1040 | do_action( 'upgrader_process_complete', $this, array( |
| 1041 | 'action' => 'update', |
| 1042 | 'type' => 'theme', |
| 1043 | 'bulk' => true, |
| 1044 | 'themes' => $themes, |
| 1045 | ) ); |
| 1046 | |
| 1047 | $this->skin->bulk_footer(); |
| 1048 | |
| 1049 | $this->skin->footer(); |
| Line | Code |
| 1472 | |
| 1473 | $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) ); |
| 1474 | |
| 1475 | $original_result = $result; |
| 1476 | $result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], (object) array( 'update' => $original_result, 'rollback' => $rollback_result ) ); |
| 1477 | } |
| 1478 | } |
| 1479 | |
| 1480 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
| 1481 | do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) ); |
| 1482 | |
| 1483 | // Clear the current updates |
| 1484 | delete_site_transient( 'update_core' ); |
| 1485 | |
| 1486 | if ( ! $parsed_args['do_rollback'] ) { |
| 1487 | $stats = array( |
| 1488 | 'update_type' => $current->response, |
| 1489 | 'success' => true, |
| 1490 | 'fs_method' => $wp_filesystem->method, |