sanitize_user Wordpress function


Description:

Sanitizes a username, stripping out unsafe characters.


Syntax:


Arguments:

(string) $username The username to be sanitized.
(bool) $strict If set limits $username to specific characters. Default false.


Return Type:

(string) The sanitized username, after passing through filters.


Define At:

wp-includes/formatting.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/sanitize_user


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×