filtrod 2.8.0
sanitize_file_name_chars
Opis — z kodu źródłowego
Filters the list of characters to remove from a filename.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$special_chars | string[] | Array of characters to remove. |
$filename_raw | string | The original filename to be sanitized. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'sanitize_file_name_chars', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'sanitize_file_name_chars', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii