wpmu_upgrade_site
Action HookDescription
Fires after each site has been upgraded.Hook Information
File Location |
wp-admin/network/upgrade.php
View on GitHub
|
Hook Type | Action |
Line Number | 122 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$site_id
|
The Site ID. |
Usage Examples
Basic Usage
<?php
// Hook into wpmu_upgrade_site
add_action('wpmu_upgrade_site', 'my_custom_function', 10, 1);
function my_custom_function($site_id) {
// Your custom code here
}
Source Code Context
wp-admin/network/upgrade.php:122
- How this hook is used in WordPress core
<?php
117 *
118 * @since MU (3.0.0)
119 *
120 * @param int $site_id The Site ID.
121 */
122 do_action( 'wpmu_upgrade_site', $site_id );
123 }
124 echo '</ul>';
125 ?><p><?php _e( 'If your browser does not start loading the next page automatically, click this link:' ); ?> <a class="button" href="upgrade.php?action=upgrade&n=<?php echo ( $n + 5 ); ?>"><?php _e( 'Next Sites' ); ?></a></p>
126 <script type="text/javascript">
127 <!--
PHP Documentation
<?php
/**
* Fires after each site has been upgraded.
*
* @since MU (3.0.0)
*
* @param int $site_id The Site ID.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/network/upgrade.php
Related Hooks
Related hooks will be displayed here in future updates.