Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Remove Group Email Notifications Screen

  • @ljmac

    Participant

    I am trying to remove the groups portion of BuddyPress’ email notifications screen. I tried the following code in bp-custom.php, but it doesn’t work:

    function remove_groups_screen_notification_settings() {
    	remove_action( 'bp_notification_settings', 'groups_screen_notification_settings' );
    }
    add_action( 'bp_notification_settings', 'remove_groups_screen_notification_settings' );

    Where am I going wrong?

    Also, is there some way to change the text of the labels in the email notifications screen?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @shanebp

    Moderator

    Don’t add a function, just do this:
    remove_action( 'bp_notification_settings', 'groups_screen_notification_settings' );

    And it won’t work in bp-custom.
    Put it in your theme or child-theme functions.php.

    @ljmac

    Participant

    Ah, I see. I did try just putting the bare remove_action in bp-custom.php, but as you say that didn’t work either. I’ll try it in the theme functions.php.

    BTW, why is it that some things only work in the theme’s functions.php, and not in bp-custom.php?

    @ljmac

    Participant

    Okay, I tried your suggestion, and it worked perfectly. Thank you so much for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Remove Group Email Notifications Screen’ is closed to new replies.
Skip to toolbar