WP HOOKS
filtrod 2.8.0

sanitize_file_name_chars

Args 2Plik wp-includes/formatting.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the list of characters to remove from a filename.

Parametry

ParametrTypOpis
$special_charsstring[]Array of characters to remove.
$filename_rawstringThe 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
}

Popularne w tej kategorii