WordPress at a glance
filter is not described

sanitize_user filter-hook . WP 2.0.1

Filters a sanitized username string.

Usage

add_filter( 'sanitize_user', 'filter_function_name_2596', 10, 3 );
function filter_function_name_2596( $username, $raw_username, $strict ){
	// filter...

	return $username;
}
$username(string)
Sanitized username.
$raw_username(string)
The username prior to sanitization.
$strict(true/false)
Whether to limit the sanitization to specific characters.

Список изменений

С версии 2.0.1 Введена.

Где вызывается хук

sanitize_user()
sanitize_user
wp-includes/formatting.php 2123
return apply_filters( 'sanitize_user', $username, $raw_username, $strict );

Где используется хук в ядре WP

wp-includes/ms-default-filters.php 33
add_filter( 'sanitize_user', 'strtolower' );