WP_User
Methods
1 to 26 of 26
- WP_User::__call() – Makes private/protected methods readable for backward compatibility.
- WP_User::__construct() – Constructor.
- WP_User::__get() – Magic method for accessing custom fields.
- WP_User::__isset() – Magic method for checking the existence of a certain custom field.
- WP_User::__set() – Magic method for setting custom user fields.
- WP_User::__unset() – Magic method for unsetting a certain custom field.
- WP_User::_init_caps() – Set up capability object properties.
- WP_User::add_cap() – Add capability and grant or deny access to capability.
- WP_User::exists() – Determine whether the user exists in the database.
- WP_User::for_blog() – Set the site to operate on. Defaults to the current site.
- WP_User::for_site() – Sets the site to operate on. Defaults to the current site.
- WP_User::get_caps_data() – Gets the available user capabilities data.
- WP_User::get_data_by() – Return only the main user fields
- WP_User::get_role_caps() – Retrieves all of the capabilities of the roles of the user, and merges them with individual user capabilities.
- WP_User::get_site_id() – Gets the ID of the site for which the user’s capabilities are currently initialized.
- WP_User::get() – Retrieve the value of a property or meta key.
- WP_User::has_cap() – Returns whether the user has the specified capability.
- WP_User::has_prop() – Determine whether a property or meta key is set
- WP_User::level_reduction() – Choose the maximum level the user has.
- WP_User::remove_all_caps() – Remove all of the capabilities of the user.
- WP_User::remove_cap() – Remove capability from user.
- WP_User::remove_role() – Removes role from user.
- WP_User::set_role() – Sets the role of the user.
- WP_User::to_array() – Return an array representation.
- WP_User::translate_level_to_cap() – Convert numeric level to level capability name.
- WP_User::update_user_level_from_caps() – Update the maximum user level for the user.