Skip to:
Content
Pages
Categories
Search
Top
Bottom

How To Change Default Email Notifications Setting?


  • Billy Bragg
    Participant

    @billybragg

    Greetings,

    I’ve been searching the boards for days and have seen this question asked at least 20 times, but never with a solution.

    Simply put, how can you change the default email notification settings for all members from “yes” to “no”?

    Explanation with code instruction would be greatly appreciated!!!

Viewing 1 replies (of 1 total)

  • r-a-y
    Keymaster

    @r-a-y

    Various notification settings are scattered throughout the BuddyPress codebase; each setting is saved as user meta.

    To disable them, you have to set each one to “no” for each member.

    eg. To disable email notifications for a member, you can use:
    `update_user_meta( $user_id, ‘notification_messages_new_message’, ‘no’ );`

    You’ll have to pass the user’s ID for the `$user_id` variable.

    In BP 1.2.9, to find notification settings, try looking at /plugins/buddypress/bp-X.php, where X is each component’s main loader and search for “notification_settings”, then grab the meta key and rinse and repeat:
    eg. https://buddypress.trac.wordpress.org/browser/tags/1.2.9/bp-messages.php#L254

Viewing 1 replies (of 1 total)
  • The topic ‘How To Change Default Email Notifications Setting?’ is closed to new replies.
Skip to toolbar