filtrod 6.2.0
pre_wp_load_alloptions
Opis — z kodu źródłowego
Filters the array of alloptions before it is populated.
Returning an array from the filter will effectively short circuit wp_load_alloptions(), returning that value instead.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$alloptions | array | null | An array of alloptions. Default null. |
$force_cache | bool | Whether to force an update of the local cache from the persistent cache. Default false. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'pre_wp_load_alloptions', '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_load_alloptions', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii