filtrod 4.8.0
file_mod_allowed
Opis — z kodu źródłowego
Filters whether file modifications are allowed.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$file_mod_allowed | bool | Whether file modifications are allowed. |
$context | string | The usage context. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'file_mod_allowed', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'file_mod_allowed', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii