Changeset 10108 for trunk/src/bp-core/bp-core-caps.php
- Timestamp:
- 09/13/2015 02:02:56 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-caps.php (modified) (22 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-caps.php
r10052 r10108 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Capabilities. … … 19 18 * WordPress's RBAC, so should our capability functions here. 20 19 * 21 * @since BuddyPress (2.1.0)20 * @since 2.1.0 22 21 * 23 22 * @return array … … 34 33 * Filters the list of editable roles. 35 34 * 36 * @since BuddyPress (2.1.0)35 * @since 2.1.0 37 36 * 38 37 * @param array $roles List of roles. … … 43 42 * Filters the array of roles from the currently loaded blog. 44 43 * 45 * @since BuddyPress (2.1.0)44 * @since 2.1.0 46 45 * 47 46 * @param array $roles Available roles. … … 56 55 * This is called on plugin activation. 57 56 * 58 * @since BuddyPress (1.6.0)57 * @since 1.6.0 59 58 * 60 59 * @uses get_role() To get the administrator, default and moderator roles. … … 82 81 * This is called on plugin activation. 83 82 * 84 * @since BuddyPress (1.6.0)83 * @since 1.6.0 85 84 */ 86 85 do_action( 'bp_add_caps' ); … … 92 91 * This is called on plugin deactivation. 93 92 * 94 * @since BuddyPress (1.6.0)93 * @since 1.6.0 95 94 * 96 95 * @uses get_role() To get the administrator and default roles. … … 118 117 * This is called on plugin deactivation. 119 118 * 120 * @since BuddyPress (1.6.0)119 * @since 1.6.0 121 120 */ 122 121 do_action( 'bp_remove_caps' ); … … 126 125 * Map community caps to built in WordPress caps. 127 126 * 128 * @since BuddyPress (1.6.0)127 * @since 1.6.0 129 128 * 130 129 * @see WP_User::has_cap() for description of the arguments passed to the … … 145 144 * Filters the community caps mapping to be built in WordPress caps. 146 145 * 147 * @since BuddyPress (1.6.0)146 * @since 1.6.0 148 147 * 149 148 * @param array $caps Returns the user's actual capabilities. … … 158 157 * Return community capabilities. 159 158 * 160 * @since BuddyPress (1.6.0)159 * @since 1.6.0 161 160 * 162 161 * @uses apply_filters() Calls 'bp_get_community_caps' with the capabilities. … … 172 171 * Filters community capabilities. 173 172 * 174 * @since BuddyPress (1.6.0)173 * @since 1.6.0 175 174 * 176 175 * @param array $caps Array of capabilities to add. Empty by default. … … 182 181 * Return an array of capabilities based on the role that is being requested. 183 182 * 184 * @since BuddyPress (1.6.0)183 * @since 1.6.0 185 184 * 186 185 * @uses apply_filters() Allow return value to be filtered. … … 217 216 * Filters the array of capabilities based on the role that is being requested. 218 217 * 219 * @since BuddyPress (1.6.0)218 * @since 1.6.0 220 219 * 221 220 * @param array $caps Array of capabilities to return. … … 231 230 * already have a role or capability on. 232 231 * 233 * @since BuddyPress (1.6.0)232 * @since 1.6.0 234 233 * 235 234 * @global BuddyPress $bp Global BuddyPress settings object. … … 266 265 * Check whether the current user has a given capability. 267 266 * 268 * @since BuddyPress (1.6.0)269 * @since BuddyPress (2.4.0)Second argument modified to accept an array, rather than `$blog_id`.267 * @since 1.6.0 268 * @since 2.4.0 Second argument modified to accept an array, rather than `$blog_id`. 270 269 * 271 270 * @param string $capability Capability or role name. … … 304 303 * Filters whether or not the current user has a given capability. 305 304 * 306 * @since BuddyPress (1.6.0)307 * @since BuddyPress (2.4.0)Pass `$args` variable.305 * @since 1.6.0 306 * @since 2.4.0 Pass `$args` variable. 308 307 * 309 308 * @param bool $retval Whether or not the current user has the capability. … … 334 333 * 335 334 * @access private 336 * @since BuddyPress (1.6.0)335 * @since 1.6.0 337 336 * 338 337 * @see WP_User::has_cap() … … 374 373 * This is called on plugin activation. 375 374 * 376 * @since BuddyPress (1.6.0)375 * @since 1.6.0 377 376 * @deprecated 1.7.0 378 377 */ … … 386 385 * This is called on plugin deactivation. 387 386 * 388 * @since BuddyPress (1.6.0)387 * @since 1.6.0 389 388 * @deprecated 1.7.0 390 389 */ … … 400 399 * sites that have global communities enabled. 401 400 * 402 * @since BuddyPress (1.6)401 * @since 1.6.0 403 402 * @deprecated 1.7.0 404 403 */ … … 410 409 * The moderator role for BuddyPress users. 411 410 * 412 * @since BuddyPress (1.6.0)411 * @since 1.6.0 413 412 * @deprecated 1.7.0 414 413 */
Note: See TracChangeset
for help on using the changeset viewer.