Action hook 'after_mu_upgrade'
in WP Core File wp-admin/admin.php at line 90
Description
Filters whether to attempt to perform the multisite DB upgrade routine. In single site, the user would be redirected to wp-admin/upgrade.php. In multisite, the DB upgrade routine is automatically fired, but only when this filter returns true. If the network is 50 sites or less, it will run every time. Otherwise, it will throttle itself to reduce load.
Occurrences
Filename |
Line Number |
wp-admin/admin.php |
90 |
wp-admin/network/upgrade.php |
113 |
Parameters
Type |
Name |
Description |
bool |
$do_mu_upgrade |
Whether to perform the Multisite upgrade routine. Default true. if ( apply_filters( 'do_mu_upgrade', true ) ) { $c = get_blog_count(); /* If there are 50 or fewer sites, run every time. Otherwise, throttle to reduce load: attempt to do no more than threshold value, with some +/- allowed. |
PHP Doc
/**
* Filters whether to attempt to perform the multisite DB upgrade routine.
*
* In single site, the user would be redirected to wp-admin/upgrade.php.
* In multisite, the DB upgrade routine is automatically fired, but only
* when this filter returns true.
*
* If the network is 50 sites or less, it will run every time. Otherwise,
* it will throttle itself to reduce load.
*
* @since MU (3.0.0)
*
* @param bool $do_mu_upgrade Whether to perform the Multisite upgrade routine. Default true.
*/
if ( apply_filters( 'do_mu_upgrade', true ) ) {
$c = get_blog_count();
/*
* If there are 50 or fewer sites, run every time. Otherwise, throttle to reduce load:
* attempt to do no more than threshold value, with some +/- allowed.
*/