Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/27/2017 05:04:31 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Tools: Add //Filter & return note for future discovery of missing filter documentation.

Also adjust some type-casting on filtered results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/capabilities.php

    r6118 r6438  
    208208    }
    209209
     210    // Filter & return
    210211    return apply_filters( 'bbp_get_caps_for_role', $caps, $role );
    211212}
     
    265266    $all_roles = apply_filters( 'editable_roles', $the_roles );
    266267
     268    // Filter & return
    267269    return apply_filters( 'bbp_get_blog_roles', $all_roles, $wp_roles );
    268270}
     
    395397        : '';
    396398
     399    // Filter & return
    397400    return apply_filters( 'bbp_get_dynamic_role_name', $role, $role_id, $roles );
    398401}
     
    436439 */
    437440function bbp_get_keymaster_role() {
     441
     442    // Filter & return
    438443    return apply_filters( 'bbp_get_keymaster_role', 'bbp_keymaster' );
    439444}
     
    448453 */
    449454function bbp_get_moderator_role() {
     455
     456    // Filter & return
    450457    return apply_filters( 'bbp_get_moderator_role', 'bbp_moderator' );
    451458}
     
    460467 */
    461468function bbp_get_participant_role() {
     469
     470    // Filter & return
    462471    return apply_filters( 'bbp_get_participant_role', 'bbp_participant' );
    463472}
     
    472481 */
    473482function bbp_get_spectator_role() {
     483
     484    // Filter & return
    474485    return apply_filters( 'bbp_get_spectator_role', 'bbp_spectator' );
    475486}
     
    484495 */
    485496function bbp_get_blocked_role() {
     497
     498    // Filter & return
    486499    return apply_filters( 'bbp_get_blocked_role', 'bbp_blocked' );
    487500}
Note: See TracChangeset for help on using the changeset viewer.