-
Abhishek Saini replied to the topic Remove invite members link for group members in the forum How-to & Troubleshooting 5 months, 2 weeks ago
@andrew_long15 , you can simply add this to remove the invites tab from the all groups.
add_filter( ‘bp_groups_user_can_send_invites’, ‘__return_false’ );
-
Anonymous User 16480907 replied to the topic Remove invite members link for group members in the forum How-to & Troubleshooting 2 years, 6 months ago
use this code.
/**
* Removes send invite tab according to Group Invitations setting.
*
* @since 2.2.0
*/
function remove_send_invite_tab() {
if ( ! bp_is_group() || ( bp_is_current_action( ‘admin’ ) && bp_action_variable( 0 ) ) || is_super_admin() ) {
return;
}// Add the admin subnav slug you want to hide in the…[Read more]
@andrew_long15
Active 2 years, 6 months ago