@package: Users
-
classWP_Roles
Core class used to implement a user roles API.
-
Filters whether the user is allowed to add post meta to a post.
-
methodWP_Roles::__construct()
Constructor.
-
hookmap_meta_cap
Filters the primitive capabilities required of the given user to satisfy the capability being checked.
-
methodWP_Roles::_init()
Sets up the object properties.
-
functioncurrent_user_can()
Returns whether the current user has the specified capability.
-
methodWP_Roles::reinit()
Reinitializes the object.
-
functionauthor_can()
Returns whether the author of the supplied post has the specified capability.
-
methodWP_Roles::add_role()
Adds a role name with capabilities to the list.
-
functionuser_can()
Returns whether a particular user has the specified capability.
-
methodWP_Roles::remove_role()
Removes a role by name.
-
functionget_role()
Retrieves role object.
-
functionadd_role()
Adds a role, if it does not exist.
-
functionremove_role()
Removes a role, if it exists.
-
functionget_super_admins()
Retrieves a list of super admins.
-
functionis_super_admin()
Determines whether user is a site admin.
-
functionmap_meta_cap()
Maps a capability to the primitive capabilities required of the given user to satisfy the capability being checked.
-
Filters the current user.
-
Prepares the query variables.
-
Filters the columns to search in a WP_User_Query search.
-
hookpre_user_query
Fires after the WP_User_Query has been parsed, and before the query is executed.
-
methodWP_User_Query::query()
Executes the query, with the current variables.
-
Filters SELECT FOUND_ROWS() query for the current WP_User_Query instance.
-
methodWP_User_Query::get()
Retrieves query variable.
-
methodWP_User_Query::set()
Sets query variable.
-
Used internally to generate an SQL string for searching across multiple columns.
-
Returns the list of users.
-
Returns the total number of users for the current query.
-
functioncheck_password_reset_key()
Retrieves a user row based on password reset key and login.
-
Filters the return value of check_password_reset_key() when an old-style key or an expired key is used.