Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/class-wp-user.php

WP_User::get_caps_data()

Method: Gets the available user capabilities data.

Source: wp-includes/class-wp-user.php:899

Used by 2 functions | Uses 1 function

WP_User::for_site()

Method: Sets the site to operate on. Defaults to the current site.

Source: wp-includes/class-wp-user.php:864

Used by 2 functions | Uses 5 functions

WP_User::get_site_id()

Method: Gets the ID of the site for which the user’s capabilities are currently initialized.

Source: wp-includes/class-wp-user.php:887

Used by 0 functions | Uses 0 functions

WP_User::__unset()

Method: Magic method for unsetting a certain custom field.

Source: wp-includes/class-wp-user.php:370

Used by 0 functions | Uses 2 functions

add_user_role

Action Hook: Fires immediately after the user has been given a new role.

Source: wp-includes/class-wp-user.php:563

Used by 2 functions | Uses 0 functions

remove_user_role

Action Hook: Fires immediately after a role as been removed from a user.

Source: wp-includes/class-wp-user.php:591

Used by 2 functions | Uses 0 functions

WP_User::__call()

Method: Makes private/protected methods readable for backward compatibility.

Source: wp-includes/class-wp-user.php:451

Used by 0 functions | Uses 1 function

WP_User::remove_all_caps()

Method: Removes all of the capabilities of the user.

Source: wp-includes/class-wp-user.php:737

Used by 0 functions | Uses 3 functions

WP_User::has_cap()

Method: Returns whether the user has the specified capability.

Source: wp-includes/class-wp-user.php:772

Used by 0 functions | Uses 7 functions

user_has_cap

Filter Hook: Dynamically filter a user’s capabilities.

Source: wp-includes/class-wp-user.php:809

Used by 1 function | Uses 0 functions

WP_User::translate_level_to_cap()

Method: Converts numeric level to level capability name.

Source: wp-includes/class-wp-user.php:837

Used by 1 function | Uses 0 functions

WP_User::for_blog()

Method: Sets the site to operate on. Defaults to the current site.

Source: wp-includes/class-wp-user.php:849

Used by 0 functions | Uses 2 functions

WP_User::update_user_level_from_caps()

Method: Updates the maximum user level for the user.

Source: wp-includes/class-wp-user.php:692

Used by 5 functions | Uses 2 functions

WP_User::add_cap()

Method: Adds capability and grant or deny access to capability.

Source: wp-includes/class-wp-user.php:706

Used by 0 functions | Uses 3 functions

WP_User::remove_cap()

Method: Removes capability from user.

Source: wp-includes/class-wp-user.php:720

Used by 0 functions | Uses 3 functions

WP_User::_init_caps()

Method: Sets up capability object properties.

Source: wp-includes/class-wp-user.php:473

Used by 1 function | Uses 4 functions

WP_User::get_role_caps()

Method: Retrieves all of the capabilities of the user’s roles, and merges them with individual user capabilities.

Source: wp-includes/class-wp-user.php:502

Used by 8 functions | Uses 6 functions

WP_User::add_role()

Method: Adds role to user.

Source: wp-includes/class-wp-user.php:541

Used by 0 functions | Uses 4 functions

WP_User::get_data_by()

Method: Returns only the main user fields.

Source: wp-includes/class-wp-user.php:193

Used by 2 functions | Uses 5 functions

WP_User::remove_role()

Method: Removes role from user.

Source: wp-includes/class-wp-user.php:573

Used by 0 functions | Uses 4 functions

WP_User::__isset()

Method: Magic method for checking the existence of a certain custom field.

Source: wp-includes/class-wp-user.php:271

Used by 1 function | Uses 3 functions

WP_User::set_role()

Method: Sets the role of the user.

Source: wp-includes/class-wp-user.php:605

Used by 0 functions | Uses 4 functions

WP_User::__get()

Method: Magic method for accessing custom fields.

Source: wp-includes/class-wp-user.php:304

Used by 1 function | Uses 4 functions

set_user_role

Action Hook: Fires after the user’s role has changed.

Source: wp-includes/class-wp-user.php:651

Used by 1 function | Uses 0 functions

WP_User::__set()

Method: Magic method for setting custom user fields.

Source: wp-includes/class-wp-user.php:345

Used by 0 functions | Uses 2 functions

WP_User::level_reduction()

Method: Chooses the maximum level the user has.

Source: wp-includes/class-wp-user.php:672

Used by 0 functions | Uses 0 functions

WP_User::exists()

Method: Determines whether the user exists in the database.

Source: wp-includes/class-wp-user.php:399

Used by 0 functions | Uses 0 functions

WP_User::get()

Method: Retrieves the value of a property or meta key.

Source: wp-includes/class-wp-user.php:413

Used by 0 functions | Uses 1 function

WP_User::has_prop()

Method: Determines whether a property or meta key is set.

Source: wp-includes/class-wp-user.php:427

Used by 0 functions | Uses 1 function

WP_User::to_array()

Method: Returns an array representation.

Source: wp-includes/class-wp-user.php:438

Used by 0 functions | Uses 0 functions
1 2 Next
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry