2 User Names with one Role Capability
-
Hello,
I need 2 User Names which have the same capabilitys. I have try it with this:
add_filter( ‘bbp_get_dynamic_roles’, ‘ntwb_bbpress_custom_role_names’ );
function ntwb_bbpress_custom_role_names() {
return array(// Participant
bbp_get_participant_role() => array(
‘name’ => ‘Standard User’,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() )
),// Spectator
bbp_get_spectator_role() => array(
‘name’ => ‘–>Premium User<–‘,
‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() )
)
);
}Now I can swith between “Standard User” and “Premium User” which is perfect, but he Premium User can not write any reply or other things. So they have not the same capaboility.
Have anybody an idea where the mistake is?
Which Member Plugin works good with WordPress and bbPress? All I try were not good 🙁
- You must be logged in to reply to this topic.