BuddyDev

Controlling Default Email Preferences for Users on a BuddyPress based site

Do you want to control the default email preferences for Users on your BuddyPress based site. Well, if you have used BuddyPress, you already know that a user can control his/her email preferences by visiting Settings->Email ( before 1.9, It was settings->Notification) as shown below:-

Now, the problem arises when you want to set a default preference for user before they update it on their own. BuddyPress does not have a hook to control the default behaviour.

The way it can be controlled is by updatingย user metaย with appropriate settings when a user activates his/her account. Thanks to Ben (@somesu) I got the idea to provide the site admins the control to set the default preference.

Option 1: Use code to set the default preference.

Here is the code that you can put in your bp-custom.php to manage the preference

Option 2: ย BP Default Email Notification Settings Control plugin

If you are not comfortable with the code, I have put a plugin for our BuddyDev Members which gives admin the control to set the default preference for newly registered users.

Here is a screenshot to show the admin panel of the plugin:-

If you are a BuddyDev Premium member, you can download the plugin from here

Download & Installation:-

https://buddydev.com/plugins/bp-default-email-notification-settings-control/

I hope the code helps you ย ๐Ÿ™‚ Please do let me know your thoughts in comment.

8 Responses to Controlling Default Email Preferences for Users on a BuddyPress based site

  • If only this worked for existing users.

    • Hi Russ,
      Thank you for the comment.
      That is my plan for next plugin but the only issue is users won't be able to override those settings. Initially we don't know whether a user has updated his/her settings or not. If we can detect that it will be super easy to do that.

  • I recently sent you an email requesting some help with one of your plugins that you helped me out with earlier. Please reply as soon as possible, for this plugin malfunctioning issue is impairing key features my site at this moment.

  • Wow… Thanks @sbrajesh for this plugin…

    Now i have set it up per code – my membership is at the moment expired – but i think it is a great plugin for all of us? ๐Ÿ˜‰

    • Hi Ben,
      Thank you. Glad you implemented it and hope it certainly helps ๐Ÿ™‚

      About membership, Just sent you a Pm ๐Ÿ™‚

      • Hi @sbrajesh,

        thanks for your reply… and yes, it helps… ๐Ÿ™‚

        I have many ideas for plugins – but i don't have the skills to do that… xD

        now, i'm waiting for your Pm… ๐Ÿ˜‰

        • Thank you. It is in your inbox now ๐Ÿ™‚
          Looking forward to work with you on some of your ideas ๐Ÿ™‚

  • Thank you, @sbrajesh… ๐Ÿ™‚

    I will get in touch with you, via pm the next days. ๐Ÿ˜‰