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