after_mu_upgrade
Action HookDescription
Fires after the Multisite DB upgrade for each site is complete.Hook Information
File Location |
wp-admin/network/upgrade.php
View on GitHub
|
Hook Type | Action |
Line Number | 113 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$response
|
The upgrade response array. |
Usage Examples
Basic Usage
<?php
// Hook into after_mu_upgrade
add_action('after_mu_upgrade', 'my_custom_function', 10, 1);
function my_custom_function($response) {
// Your custom code here
}
Source Code Context
wp-admin/network/upgrade.php:113
- How this hook is used in WordPress core
<?php
108 *
109 * @since MU (3.0.0)
110 *
111 * @param array $response The upgrade response array.
112 */
113 do_action( 'after_mu_upgrade', $response );
114
115 /**
116 * Fires after each site has been upgraded.
117 *
118 * @since MU (3.0.0)
PHP Documentation
<?php
/**
* Fires after the Multisite DB upgrade for each site is complete.
*
* @since MU (3.0.0)
*
* @param array $response The upgrade response array.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/network/upgrade.php
Related Hooks
Related hooks will be displayed here in future updates.