Archive | /wp-includes/user.php RSS feed for this section

setup_userdata

Set up global user vars.Used by wp_set_current_user() for back compat. Might be deprecated in the future.

2839

Continue reading

sanitize_user_object

Sanitize every user field.If the context is ‘raw’, then the user object or array will get minimal santization of the int fields.

2801

Continue reading

sanitize_user_field

Sanitize user field based on context.Possible context values are: ‘raw’, ‘edit’, ‘db’, ‘display’, ‘attribute’ and ‘js’. The ‘display’ context is used by default. ‘attribute’ and ‘js’ contexts are treated like ‘display’ when calling filters.

2799

Continue reading

get_user_option

Retrieve user option that can be either per Site or per Network.If the user ID is not given, then the current user will be used instead. If the user ID is given, then the user data will be retrieved. The filter for the result, will also pass the original option name and finally the user data object as the third parameter.

1903

Continue reading

get_user_metavalues

Perform the query to get the $metavalues array(s) needed by _fill_user and _fill_many_users

1901

Continue reading