willysbd (@willysbd)

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

  • willysbd
    Participant

    @willysbd

    Please, can someone help me?
    Thanks!


    willysbd
    Participant

    @willysbd

    I tried to make a custom plugin with this code, but it didn’t work so…Any solution?
    Thanks!


    willysbd
    Participant

    @willysbd

    Hi John!
    Thanks for the quick response!
    I modified your code to:

    /* wp customer -> bbp block */
    add_filter( 'bbp_get_user_role_map', function( $roles = array() ) {
        $roles['customer'] = 'bbp_blocked';
        return $roles;
    } );
    
    /* wp suscriber -> bbp participant */
    add_filter( 'bbp_get_user_role_map', function( $roles = array() ) {
        $roles['subscriber'] = 'bbp_participant';
        return $roles;
    } );
    

    But doesn’t works fine… when I change a Wp user role they lost any user role at bbpress.. (I put the code in functions in my child theme, is correct?)

    Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)