Changeset 3860 for branches/plugin/bbp-includes/bbp-core-caps.php
- Timestamp:
- 05/01/2012 10:08:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-core-caps.php
r3758 r3860 556 556 * sites that have global forums enabled want to create topics and replies 557 557 * 558 * @since bbPress (r3860) 559 * 560 * @uses apply_filters() Allow override of hardcoded anonymous role 561 * @return string 562 */ 563 function bbp_get_anonymous_role() { 564 return apply_filters( 'bbp_get_anonymous_role', 'bbp_anonymous' ); 565 } 566 567 /** 568 * The participant role for registered users without roles 569 * 570 * This is primarily for multisite compatibility when users without roles on 571 * sites that have global forums enabled want to create topics and replies 572 * 558 573 * @since bbPress (r3410) 559 574 * 575 * @uses apply_filters() Allow override of hardcoded participant role 576 * @return string 577 */ 578 function bbp_get_participant_role() { 579 return apply_filters( 'bbp_get_participant_role', 'bbp_participant' ); 580 } 581 582 /** 583 * The moderator role for bbPress users 584 * 585 * @since bbPress (r3410) 586 * 560 587 * @param string $role 561 * @uses apply_filters() 588 * @uses apply_filters() Allow override of hardcoded moderator role 562 589 * @return string 563 590 */ 564 function bbp_get_participant_role() {565 566 // Hardcoded participant role567 $role = 'bbp_participant';568 569 // Allow override570 return apply_filters( 'bbp_get_participant_role', $role );571 }572 573 /**574 * The moderator role for bbPress users575 *576 * @since bbPress (r3410)577 *578 * @param string $role579 * @uses apply_filters()580 * @return string581 */582 591 function bbp_get_moderator_role() { 583 584 // Hardcoded moderated user role 585 $role = 'bbp_moderator'; 586 587 // Allow override 588 return apply_filters( 'bbp_get_moderator_role', $role ); 592 return apply_filters( 'bbp_get_moderator_role', 'bbp_moderator' ); 589 593 } 590 594
Note: See TracChangeset
for help on using the changeset viewer.