Filter hook 'sanitize_user'

in WP Core File wp-includes/formatting.php at line 2156

Description

Filters a sanitized username string.

Occurrences

Filename Line Number
wp-includes/formatting.php 2156

Parameters

Type Name Description
string $username Sanitized username.
string $raw_username The username prior to sanitization.
bool $strict Whether to limit the sanitization to specific characters.

PHP Doc

/**
	 * Filters a sanitized username string.
	 *
	 * @since 2.0.1
	 *
	 * @param string $username     Sanitized username.
	 * @param string $raw_username The username prior to sanitization.
	 * @param bool   $strict       Whether to limit the sanitization to specific characters.
	 */