BBpress 2.5.4 custom roles trouble
-
Hi everyone, i was wondering what i’m doing wrong here..
I added 13 new roles in my themes functions.php, but when i try to assign them to my users it obly shows a few of them..functions.php code
function add_custom_role( $bbp_roles ) { $bbp_roles['my_custom_role'] = array( 'name' => 'Recruit', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role'] = array( 'name' => 'Corporal', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role'] = array( 'name' => 'Sergeant', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role'] = array( 'name' => 'Lieutenant', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role'] = array( 'name' => 'Captain', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role'] = array( 'name' => 'General', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role'] = array( 'name' => 'Admin', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role'] = array( 'name' => 'Organiser', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role'] = array( 'name' => 'Coordinator', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role'] = array( 'name' => 'Overseer', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role'] = array( 'name' => 'Deputy Owner', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role'] = array( 'name' => 'Owner', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role'] = array( 'name' => 'Clan Wars Leader', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); return $bbp_roles; } add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );
Anyone has an idea?
also how can i add images in front of the names? small icons like this:
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.