WP HOOKS
filtrod 5.1.0

pre_wp_is_site_initialized

Args 2Plik wp-includes/ms-site.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the check for whether a site is initialized before the database is accessed.

Returning a non-null value will effectively short-circuit the function, returning that value instead.

Parametry

ParametrTypOpis
$prebool | nullThe value to return instead. Default null to continue with the check.
$site_idintThe site ID that is being checked.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'pre_wp_is_site_initialized', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}