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 |
|---|---|
| 606 | //Install Succeeded |
| 607 | $this->skin->feedback('process_success'); |
| 608 | } |
| 609 | |
| 610 | $this->skin->after(); |
| 611 | |
| 612 | if ( ! $options['is_multi'] ) { |
| 613 | |
| 614 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
| 615 | do_action( 'upgrader_process_complete', $this, $options['hook_extra'] ); |
| 616 | $this->skin->footer(); |
| 617 | } |
| 618 | |
| 619 | return $result; |
| 620 | } |
| 621 | |
| 622 | /** |
| 623 | * Toggle maintenance mode for the site. |
| 624 | * |
| Line | Code |
| 923 | * @param array $data { |
| 924 | * Array of bulk item update data. |
| 925 | * |
| 926 | * @type string $action Type of action. Default 'update'. |
| 927 | * @type string $type Type of update process. Accepts 'plugin', 'theme', or 'core'. |
| 928 | * @type bool $bulk Whether the update process is a bulk update. Default true. |
| 929 | * @type array $packages Array of plugin, theme, or core packages to update. |
| 930 | * } |
| 931 | */ |
| 932 | do_action( 'upgrader_process_complete', $this, array( |
| 933 | 'action' => 'update', |
| 934 | 'type' => 'plugin', |
| 935 | 'bulk' => true, |
| 936 | 'plugins' => $plugins, |
| 937 | ) ); |
| 938 | |
| 939 | $this->skin->bulk_footer(); |
| 940 | |
| 941 | $this->skin->footer(); |
| Line | Code |
| 1435 | |
| 1436 | // Prevent credentials auth screen from displaying multiple times |
| 1437 | if ( false === $result ) |
| 1438 | break; |
| 1439 | } //end foreach $plugins |
| 1440 | |
| 1441 | $this->maintenance_mode(false); |
| 1442 | |
| 1443 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
| 1444 | do_action( 'upgrader_process_complete', $this, array( |
| 1445 | 'action' => 'update', |
| 1446 | 'type' => 'theme', |
| 1447 | 'bulk' => true, |
| 1448 | 'themes' => $themes, |
| 1449 | ) ); |
| 1450 | |
| 1451 | $this->skin->bulk_footer(); |
| 1452 | |
| 1453 | $this->skin->footer(); |
| Line | Code |
| 2060 | |
| 2061 | $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) ); |
| 2062 | |
| 2063 | $original_result = $result; |
| 2064 | $result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], (object) array( 'update' => $original_result, 'rollback' => $rollback_result ) ); |
| 2065 | } |
| 2066 | } |
| 2067 | |
| 2068 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
| 2069 | do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) ); |
| 2070 | |
| 2071 | // Clear the current updates |
| 2072 | delete_site_transient( 'update_core' ); |
| 2073 | |
| 2074 | if ( ! $parsed_args['do_rollback'] ) { |
| 2075 | $stats = array( |
| 2076 | 'update_type' => $current->response, |
| 2077 | 'success' => true, |
| 2078 | 'fs_method' => $wp_filesystem->method, |