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-role.php

WP_Role::__construct()

Method: Constructor – Set up object properties.

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

Used by 2 functions | Uses 0 functions

WP_Role::add_cap()

Method: Assign role a capability.

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

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

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

Used by 0 functions | Uses 2 functions

role_has_cap

Filter Hook: Filters which capabilities a role has.

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

Used by 1 function | Uses 0 functions

WP_Role

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

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

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