wp-includes/class-wp-user.php


Lines:

1 to 41 of 41
<?php

/**
 * User API: WP_User class
 *
 * @package WordPress
 * @subpackage Users
 * @since 4.4.0
 */

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

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,,