@package: Users
-
methodWP_User::for_blog()
Sets the site to operate on. Defaults to the current site.
-
Chooses the maximum level the user has.
-
methodWP_User::exists()
Determines whether the user exists in the database.
-
methodWP_User::get()
Retrieves the value of a property or meta key.
-
methodWP_User::has_prop()
Determines whether a property or meta key is set.
-
methodWP_User::to_array()
Returns an array representation.
-
methodWP_User::_init_caps()
Sets up capability object properties.
-
methodWP_User::get_role_caps()
Retrieves all of the capabilities of the user’s roles, and merges them with individual user capabilities.
-
methodWP_User::add_role()
Adds role to user.
-
methodWP_User::get_data_by()
Returns only the main user fields.
-
methodWP_User::remove_role()
Removes role from user.
-
methodWP_User::__isset()
Magic method for checking the existence of a certain custom field.
-
methodWP_User::set_role()
Sets the role of the user.
-
methodWP_User::__get()
Magic method for accessing custom fields.
-
hookset_user_role
Fires after the user’s role has changed.
-
methodWP_User::__set()
Magic method for setting custom user fields.
-
methodWP_Role::add_cap()
Assign role a capability.
-
methodWP_Role::remove_cap()
Removes a capability from a role.
-
methodWP_Role::has_cap()
Determines whether the role has the given capability.
-
hookrole_has_cap
Filters which capabilities a role has.
-
methodWP_Roles::add_cap()
Adds a capability to role.
-
classWP_User
Core class used to implement the WP_User object.
-
methodWP_Roles::remove_cap()
Removes a capability from role.
-
methodWP_User::__construct()
Constructor.
-
methodWP_Roles::get_role()
Retrieves a role object by name.
-
methodWP_User::init()
Sets up object properties, including capabilities.
-
methodWP_Roles::get_names()
Retrieves a list of role names.
-
methodWP_Roles::is_role()
Determines whether a role name is currently in the list of available roles.
-
classWP_Role
Core class used to extend the user roles API.
-
methodWP_Role::__construct()
Constructor – Set up object properties.