filtrod 5.1.0
pre_wp_is_site_initialized
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
| Parametr | Typ | Opis |
|---|---|---|
$pre | bool | null | The value to return instead. Default null to continue with the check. |
$site_id | int | The 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
}
// 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
}