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 |
1045 | * @param array $data { |
1046 | * Array of bulk item update data. |
1047 | * |
1048 | * @type string $action Type of action. Default 'update'. |
1049 | * @type string $type Type of update process. Accepts 'plugin', 'theme', or 'core'. |
1050 | * @type bool $bulk Whether the update process is a bulk update. Default true. |
1051 | * @type array $packages Array of plugin, theme, or core packages to update. |
1052 | * } |
1053 | */ |
1054 | do_action( 'upgrader_process_complete', $this, array( |
1055 | 'action' => 'update', |
1056 | 'type' => 'plugin', |
1057 | 'bulk' => true, |
1058 | 'plugins' => $plugins, |
1059 | ) ); |
1060 |
|
1061 | $this->skin->bulk_footer(); |
1062 |
|
1063 | $this->skin->footer(); |
Line | Code |
1596 |
|
1597 | // Prevent credentials auth screen from displaying multiple times |
1598 | if ( false === $result ) |
1599 | break; |
1600 | } //end foreach $plugins |
1601 |
|
1602 | $this->maintenance_mode(false); |
1603 |
|
1604 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
1605 | do_action( 'upgrader_process_complete', $this, array( |
1606 | 'action' => 'update', |
1607 | 'type' => 'theme', |
1608 | 'bulk' => true, |
1609 | 'themes' => $themes, |
1610 | ) ); |
1611 |
|
1612 | $this->skin->bulk_footer(); |
1613 |
|
1614 | $this->skin->footer(); |
Line | Code |
2301 |
|
2302 | $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) ); |
2303 |
|
2304 | $original_result = $result; |
2305 | $result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], (object) array( 'update' => $original_result, 'rollback' => $rollback_result ) ); |
2306 | } |
2307 | } |
2308 |
|
2309 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |
2310 | do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) ); |
2311 |
|
2312 | // Clear the current updates |
2313 | delete_site_transient( 'update_core' ); |
2314 |
|
2315 | if ( ! $parsed_args['do_rollback'] ) { |
2316 | $stats = array( |
2317 | 'update_type' => $current->response, |
2318 | 'success' => true, |
2319 | 'fs_method' => $wp_filesystem->method, |