do_mu_upgrade WordPress Filter Hook

The do_mu_upgrade hook is triggered when a user upgrades their WordPress site from one version to another. This hook allows you to perform any necessary actions for upgrading your site.

apply_filters( 'do_mu_upgrade', bool $do_mu_upgrade ) #

Filters whether to attempt to perform the multisite DB upgrade routine.


Description

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.


Top ↑

Parameters

$do_mu_upgrade

(bool)Whether to perform the Multisite upgrade routine. Default true.


Top ↑

Source

File: wp-admin/admin.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.