WP HOOKS
filtrod MU (3.0.0)

do_mu_upgrade

Args 1Plik wp-admin/admin.phpDokumentacja WP ↗

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

ParametrTypOpis
$do_mu_upgradeboolWhether 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
}

Popularne w tej kategorii