File: wp-includes/class-wp-user.php
-
methodWP_User::get_caps_data()
Gets the available user capabilities data.
-
methodWP_User::for_site()
Sets the site to operate on. Defaults to the current site.
-
methodWP_User::get_site_id()
Gets the ID of the site for which the user’s capabilities are currently initialized.
-
methodWP_User::__unset()
Magic method for unsetting a certain custom field.
-
hookadd_user_role
Fires immediately after the user has been given a new role.
-
hookremove_user_role
Fires immediately after a role as been removed from a user.
-
methodWP_User::__call()
Makes private/protected methods readable for backward compatibility.
-
Removes all of the capabilities of the user.
-
methodWP_User::has_cap()
Returns whether the user has the specified capability.
-
hookuser_has_cap
Dynamically filter a user’s capabilities.
-
Converts numeric level to level capability name.
-
methodWP_User::for_blog()
Sets the site to operate on. Defaults to the current site.
-
Updates the maximum user level for the user.
-
methodWP_User::add_cap()
Adds capability and grant or deny access to capability.
-
methodWP_User::remove_cap()
Removes capability from user.
-
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.
-
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.