sanitize_user_field Wordpress function


Description:

Sanitize user field based on context.


Syntax:


Arguments:

(string) $field The user Object field name.
(mixed) $value The user Object value.
(int) $user_id user ID.
(string) $context How to sanitize user fields. Looks for 'raw', 'edit', 'db', 'display', 'attribute' and 'js'.


Return Type:

(mixed) Sanitized value.


Define At:

wp-includes/user.php


Wordpress Reference URL:

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


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