Replies
Hello Simon,
Thank you for telling me. Please use the following code it will hide the members tab except for super admin or group admin.
add_action( 'groups_setup_nav', function () { if ( is_super_admin() || groups_is_user_admin( get_current_user_id(), bp_get_current_group_id() ) ) { return; } // If will hide members tab for all users. You can place conditions whom to show or hide this group. bp_core_remove_subnav_item( bp_get_current_group_slug(), 'members', 'groups' ); } );
Regards
Ravi- Ravi on September 20, 2021 at 6:17 am in reply to: [Resolved] Hide a specific group on my profile tab #40629
Hello Simon,
Thank you for the clarification. Can you provide me screenshots because it will give a more clear view of your requirements ?. As per my understanding, you are looking for a way to hide secret groups under Group’s directory > Secret Tab. Or point me you the link where these groups are rendering and you want to hide them.
Regards
Ravi Hello Simon,
Are you looking to hide the group’s member tab or hide some members from the group member’s list?.
Regards
Ravi- Ravi on September 17, 2021 at 5:53 am in reply to: [Resolved] Hide a specific group on my profile tab #40597
Hello Simon,
As you said the privacy of secret groups is hidden and hidden groups by default are invisible to non-members. These group names and descriptions are not listed in sitewide directories, and their contents are accessible only to members of the group. Because the group is unlisted, users cannot request membership. Instead, individuals can only join the group by invitation.
what are the organizers you are referring to is it group administrator?.
Please help me to understand your requirement so that I can help You.
Regards
Ravi - Ravi on September 16, 2021 at 8:11 am in reply to: [Resolved] Hide a specific group on my profile tab #40581
Hello Simon,
Thank you for asking. Please try the following code:
add_filter( 'bp_after_has_groups_parse_args', function ( $r ) { // Not show secret groups to other users except user on his own profile. if ( bp_is_user() && ! bp_is_my_profile() ) { $r['group_type__not_in'] = array( 'secret' ); } return $r; } );
Regards
Ravi - Ravi on September 16, 2021 at 7:24 am in reply to: [Resolved] Auto Join not working for new users #40577
Hello Tomas,
Thank you for the acknowledgment. I am glad that I could help.
Regards
Ravi - Ravi on September 15, 2021 at 8:08 am in reply to: [Resolved] Auto Join not working for new users #40553
Hello Tomas,
Thank you for sharing the details. I have checked and testing the functionality by creating a test account “buddydevsupport” and the group is successfully adding to my account. Please give it a shot another time and check if this is working for you or not.
Regards
Ravi - Ravi on September 15, 2021 at 5:58 am in reply to: [Resolved] How to translate buddypress member type pro lables? #40552This reply has been marked as private.
- Ravi on September 14, 2021 at 5:35 am in reply to: [Resolved] Auto Join not working for new users #40520This reply has been marked as private.
Hello John,
Thank you for posting. Please let me know are you looking for a solution that enables you to reflect the same users, same forums with all subsite?.
Regards
Ravi