• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register

WordPress.org

  • Showcase
  • Learn
  • Themes
  • Plugins
  • Mobile
  • Support
    • Documentation
    • Forums
  • Get Involved
    • Five for the Future
  • 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:873

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

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

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

Used by 0 functions | Uses 2 functions

remove_user_role

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

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

Used by 1 function | Uses 0 functions

add_user_role

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

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

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

Used by 0 functions | Uses 1 function

WP_User::update_user_level_from_caps()

Method: Update the maximum user level for the user.

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

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

Used by 0 functions | Uses 3 functions

WP_User::remove_cap()

Method: Remove capability from user.

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

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

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

Used by 0 functions | Uses 8 functions

user_has_cap

Filter Hook: Dynamically filter a user’s capabilities.

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

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

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

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

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

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

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

Used by 0 functions | Uses 1 function

WP_User::to_array()

Method: Return an array representation.

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

Used by 0 functions | Uses 0 functions

WP_User::_init_caps()

Method: Set up capability object properties.

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

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

Used by 8 functions | Uses 6 functions

WP_User::add_role()

Method: Add role to user.

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

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

Used by 2 functions | Uses 5 functions

WP_User::remove_role()

Method: Remove role from user.

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

Used by 0 functions | Uses 5 functions

WP_User::__isset()

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

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

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

Used by 0 functions | Uses 5 functions

WP_User::__get()

Method: Magic method for accessing custom fields.

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

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

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

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

Code is Poetry.