Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

  • lolotrgeek
    Participant

    @lolotrgeek

    I was having this same problem and after a long mostly fruitless search I finally found a solid/working answer. The way buddypress currently handles these tabs is quite unwieldy so removing each tab requires a different method…

    How to remove group settings tab:

    function bp_remove_group_step_settings($array) {
    	
    	$array = array(
    		'group-details'  => array(
    			'name'       => _x( 'Details', 'Group screen nav', 'buddypress' ),
    			'position'   => 0
    		)
    	);
    	
    	return $array;
    }
    add_filter ('groups_create_group_steps', 'bp_remove_group_step_settings', 10, 1);

    (reference)
    How to remove group avatar and cover photo tabs:
    1. go to Dashboard » BuddyPress » Settings
    2. untick Group Photo Uploads and Group Cover Image Uploads

    How to remove group invite tab:

    function bp_remove_group_step_invites() {
    
    	global $bp;
    	
    	unset( $bp->groups->group_creation_steps['group-invites'] );
    	
    }
    add_action( 'bp_init', 'bp_remove_group_step_invites', 9999 ); 

    How to remove forums tab:
    Disable forums for buddypress…still havent figured out a more practical answer…

    Hope this helps though!


    lolotrgeek
    Participant

    @lolotrgeek

    That worked, I knew it was something easy that I was missing.

    Thanks!


    lolotrgeek
    Participant

    @lolotrgeek

    Oops hit reply not edit! well…

    Here’s the solution I arrived at:

    function filter_change_email_subject ( $email_subject, $sender_name, $ud ) {
    	$email_subject = sprintf( __('%1$s wants to say hello', 'buddypress' ), $sender_name);
    	return $email_subject;
    }
    add_filter( 'messages_notification_new_message_subject', 'filter_change_email_subject' , 10, 7 );

    This works for what I’m doing, for someone else that wants to pass a dynamic subject you may need to nest this function.


    lolotrgeek
    Participant

    @lolotrgeek

    Thanks shanebp! Sorry for the late reply, your post may have indavertently helped me. I’ll edit this with my solution shortly.

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar