WP HOOKS
filtrod 2.0.1

sanitize_user

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

Opis — z kodu źródłowego

Filters a sanitized username string.

Parametry

ParametrTypOpis
$usernamestringSanitized username.
$raw_usernamestringThe username prior to sanitization.
$strictboolWhether to limit the sanitization to specific characters.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'sanitize_user', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii