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 |
---|---|
711 | // Install succeeded. |
712 | $this->skin->feedback('process_success'); |
713 | } |
714 |
|
715 | $this->skin->after(); |
716 |
|
717 | if ( ! $options['is_multi'] ) { |
718 |
|
719 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
720 | do_action( 'upgrader_process_complete', $this, $options['hook_extra'] ); |
721 | $this->skin->footer(); |
722 | } |
723 |
|
724 | return $result; |
725 | } |
726 |
|
727 | /** |
728 | * Toggle maintenance mode for the site. |
729 | * |
Line | Code |
1108 | * @param array $data { |
1109 | * Array of bulk item update data. |
1110 | * |
1111 | * @type string $action Type of action. Default 'update'. |
1112 | * @type string $type Type of update process. Accepts 'plugin', 'theme', or 'core'. |
1113 | * @type bool $bulk Whether the update process is a bulk update. Default true. |
1114 | * @type array $packages Array of plugin, theme, or core packages to update. |
1115 | * } |
1116 | */ |
1117 | do_action( 'upgrader_process_complete', $this, array( |
1118 | 'action' => 'update', |
1119 | 'type' => 'plugin', |
1120 | 'bulk' => true, |
1121 | 'plugins' => $plugins, |
1122 | ) ); |
1123 |
|
1124 | $this->skin->bulk_footer(); |
1125 |
|
1126 | $this->skin->footer(); |
Line | Code |
1659 |
|
1660 | // Prevent credentials auth screen from displaying multiple times |
1661 | if ( false === $result ) |
1662 | break; |
1663 | } //end foreach $plugins |
1664 |
|
1665 | $this->maintenance_mode(false); |
1666 |
|
1667 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
1668 | do_action( 'upgrader_process_complete', $this, array( |
1669 | 'action' => 'update', |
1670 | 'type' => 'theme', |
1671 | 'bulk' => true, |
1672 | 'themes' => $themes, |
1673 | ) ); |
1674 |
|
1675 | $this->skin->bulk_footer(); |
1676 |
|
1677 | $this->skin->footer(); |
Line | Code |
2378 |
|
2379 | $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) ); |
2380 |
|
2381 | $original_result = $result; |
2382 | $result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], (object) array( 'update' => $original_result, 'rollback' => $rollback_result ) ); |
2383 | } |
2384 | } |
2385 |
|
2386 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
2387 | do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) ); |
2388 |
|
2389 | // Clear the current updates |
2390 | delete_site_transient( 'update_core' ); |
2391 |
|
2392 | if ( ! $parsed_args['do_rollback'] ) { |
2393 | $stats = array( |
2394 | 'update_type' => $current->response, |
2395 | 'success' => true, |
2396 | 'fs_method' => $wp_filesystem->method, |