Changeset 12160 for trunk/wp-includes/capabilities.php
- Timestamp:
- 11/09/2009 10:15:50 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/capabilities.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r12053 r12160 124 124 * Updates the list of roles, if the role doesn't already exist. 125 125 * 126 * The capabilities are defined in the following format `array( 'read' => true );` 127 * To explicitly deny a role a capability you set the value for that capability to false. 128 * 126 129 * @since 2.0.0 127 130 * @access public … … 129 132 * @param string $role Role name. 130 133 * @param string $display_name Role display name. 131 * @param array $capabilities List of role capabilities .134 * @param array $capabilities List of role capabilities in the above format. 132 135 * @return null|WP_Role WP_Role object if role is added, null if already exists. 133 136 */ … … 175 178 * @param string $role Role name. 176 179 * @param string $cap Capability name. 177 * @param bool $grant Optional, default is true. Whether role is capable of p reforming capability.180 * @param bool $grant Optional, default is true. Whether role is capable of performing capability. 178 181 */ 179 182 function add_cap( $role, $cap, $grant = true ) {
Note: See TracChangeset
for help on using the changeset viewer.