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 |
|---|---|
| 434 | //Install Succeeded |
| 435 | $this->skin->feedback('process_success'); |
| 436 | } |
| 437 | |
| 438 | $this->skin->after(); |
| 439 | |
| 440 | if ( ! $options['is_multi'] ) { |
| 441 | |
| 442 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
| 443 | do_action( 'upgrader_process_complete', $this, $options['hook_extra'] ); |
| 444 | $this->skin->footer(); |
| 445 | } |
| 446 | |
| 447 | return $result; |
| 448 | } |
| 449 | |
| 450 | public function maintenance_mode($enable = false) { |
| 451 | global $wp_filesystem; |
| 452 | $file = $wp_filesystem->abspath() . '.maintenance'; |
| Line | Code |
| 670 | * @param array $data { |
| 671 | * Array of bulk item update data. |
| 672 | * |
| 673 | * @type string $action Type of action. Default 'update'. |
| 674 | * @type string $type Type of update process. Accepts 'plugin', 'theme', or 'core'. |
| 675 | * @type bool $bulk Whether the update process is a bulk update. Default true. |
| 676 | * @type array $packages Array of plugin, theme, or core packages to update. |
| 677 | * } |
| 678 | */ |
| 679 | do_action( 'upgrader_process_complete', $this, array( |
| 680 | 'action' => 'update', |
| 681 | 'type' => 'plugin', |
| 682 | 'bulk' => true, |
| 683 | 'plugins' => $plugins, |
| 684 | ) ); |
| 685 | |
| 686 | $this->skin->bulk_footer(); |
| 687 | |
| 688 | $this->skin->footer(); |
| Line | Code |
| 1055 | |
| 1056 | // Prevent credentials auth screen from displaying multiple times |
| 1057 | if ( false === $result ) |
| 1058 | break; |
| 1059 | } //end foreach $plugins |
| 1060 | |
| 1061 | $this->maintenance_mode(false); |
| 1062 | |
| 1063 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
| 1064 | do_action( 'upgrader_process_complete', $this, array( |
| 1065 | 'action' => 'update', |
| 1066 | 'type' => 'theme', |
| 1067 | 'bulk' => true, |
| 1068 | 'themes' => $themes, |
| 1069 | ) ); |
| 1070 | |
| 1071 | $this->skin->bulk_footer(); |
| 1072 | |
| 1073 | $this->skin->footer(); |
| Line | Code |
| 1544 | |
| 1545 | $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) ); |
| 1546 | |
| 1547 | $original_result = $result; |
| 1548 | $result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], (object) array( 'update' => $original_result, 'rollback' => $rollback_result ) ); |
| 1549 | } |
| 1550 | } |
| 1551 | |
| 1552 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
| 1553 | do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) ); |
| 1554 | |
| 1555 | // Clear the current updates |
| 1556 | delete_site_transient( 'update_core' ); |
| 1557 | |
| 1558 | if ( ! $parsed_args['do_rollback'] ) { |
| 1559 | $stats = array( |
| 1560 | 'update_type' => $current->response, |
| 1561 | 'success' => true, |
| 1562 | 'fs_method' => $wp_filesystem->method, |