WordPress.org

  • Showcase
  • Themes
  • Plugins
  • Mobile
  • Support
    • Documentation
    • Forums
  • Get Involved
  • About
  • Blog
  • Hosting
  • Get WordPress

Code Reference

Skip to content
Filter by type:
Search
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:857

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:823

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:846

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:362

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:549

Used by 1 function | 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:576

Used by 1 function | Uses 0 functions

WP_User::__call()

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

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

Used by 0 functions | Uses 0 functions

WP_User::for_blog()

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

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

Used by 0 functions | Uses 2 functions

WP_User::update_user_level_from_caps()

Method: Update the maximum user level for the user.

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

Used by 5 functions | Uses 2 functions

WP_User::add_cap()

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

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

Used by 0 functions | Uses 3 functions

WP_User::remove_cap()

Method: Remove capability from user.

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

Used by 0 functions | Uses 3 functions

WP_User::remove_all_caps()

Method: Remove all of the capabilities of the user.

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

Used by 0 functions | Uses 3 functions

WP_User::has_cap()

Method: Whether the user has a specific capability.

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

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:768

Used by 1 function | Uses 0 functions

WP_User::translate_level_to_cap()

Method: Convert numeric level to level capability name.

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

Used by 1 function | Uses 0 functions

WP_User::__isset()

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

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

Used by 1 function | Uses 3 functions

WP_User::set_role()

Method: Set the role of the user.

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

Used by 0 functions | Uses 5 functions

WP_User::__get()

Method: Magic method for accessing custom fields.

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

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:620

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:337

Used by 0 functions | Uses 2 functions

WP_User::level_reduction()

Method: Choose the maximum level the user has.

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

Used by 0 functions | Uses 0 functions

WP_User::exists()

Method: Determine whether the user exists in the database.

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

Used by 0 functions | Uses 0 functions

WP_User::get()

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

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

Used by 0 functions | Uses 1 function

WP_User::has_prop()

Method: Determine whether a property or meta key is set

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

Used by 0 functions | Uses 1 function

WP_User::to_array()

Method: Return an array representation.

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

Used by 0 functions | Uses 0 functions

WP_User::_init_caps()

Method: Set up capability object properties.

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

Used by 0 functions | Uses 4 functions

WP_User::get_role_caps()

Method: Retrieve all of the role capabilities and merge with individual capabilities.

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

Used by 8 functions | Uses 6 functions

WP_User::add_role()

Method: Add role to user.

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

Used by 0 functions | Uses 5 functions

WP_User::get_data_by()

Method: Return only the main user fields

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

Used by 2 functions | Uses 5 functions

WP_User::remove_role()

Method: Remove role from user.

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

Used by 0 functions | Uses 5 functions
1 2 Next »
  • About
  • Blog
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Showcase
  • Plugins
  • Themes
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
  • @WordPress
  • WordPress

Code is Poetry.

Skip to toolbar
  • About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register