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
    • WordPress Swag Store
  • Get WordPress
Get WordPress

Developer Resources

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

WP_Role

Class: Core class used to extend the user roles API.

Source: wp-includes/class-wp-role.php:16

Used by 0 functions | Uses 0 functions

WP_Role::__construct()

Method: Constructor – Set up object properties.

Source: wp-includes/class-wp-role.php:46

Used by 2 functions | Uses 0 functions

WP_Role::add_cap()

Method: Assign role a capability.

Source: wp-includes/class-wp-role.php:59

Used by 0 functions | Uses 2 functions

WP_Role::remove_cap()

Method: Removes a capability from a role.

Source: wp-includes/class-wp-role.php:71

Used by 0 functions | Uses 2 functions

WP_Role::has_cap()

Method: Determines whether the role has the given capability.

Source: wp-includes/class-wp-role.php:84

Used by 0 functions | Uses 1 function

role_has_cap

Filter Hook: Filters which capabilities a role has.

Source: wp-includes/class-wp-role.php:95

Used by 1 function | Uses 0 functions
  • 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