filtrod MU (3.0.0)
do_mu_upgrade
Opis — z kodu źródłowego
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.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$do_mu_upgrade | bool | Whether to perform the Multisite upgrade routine. Default true. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'do_mu_upgrade', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'do_mu_upgrade', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii