Please, can someone help me?
Thanks!
I tried to make a custom plugin with this code, but it didn’t work so…Any solution?
Thanks!
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!