filtrod 6.6.0
wp_default_autoload_value
Opis — z kodu źródłowego
Allows to determine the default autoload value for an option where no explicit value is passed.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$autoload | bool | null | The default autoload value to set. Returning true will be set as 'auto-on' in the database, false will be set as 'auto-off', and null will be set as 'auto'. |
$option | string | The passed option name. |
$value | mixed | The passed option value to be saved. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_default_autoload_value', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_default_autoload_value', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii