Skip to:
Content
Pages
Categories
Search
Top
Bottom

Creating large group of new users – need to turn off email notifications for all of them

  • Avatar of apellicone
    apellicone
    Participant

    @apellicone

    I know that this is possible on a by-user basis from the settings panel, but I was hoping to not have to do that for all 100 users accounts that I’m creating. Previous searches show that there was a notification manager plugin, but that seems to have disappeared from the web. Is there a way to turn off all email notifications with functions.php?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    Hi,
    try this in bp-custom.php
    `remove_filter( ‘wpmu_signup_blog_notification’, ‘bp_core_activation_signup_blog_notification’, 1, 7 );`

    source infos buddypress /bp-core/bp-core-filters.php

    The concerned filter do this
    /***
    * bp_core_filter_blog_welcome_email()
    *
    * Replace the generated password in the welcome email.
    * This will not filter when the site admin registers a user.
    *
    * @uses locate_template To see if custom registration files exist
    * @param string $welcome_email Complete email passed through WordPress
    * @param integer $blog_id ID of the blog user is joining
    * @param integer $user_id ID of the user joining
    * @param string $password Password of user
    * @return string Filtered $welcome_email with $password replaced by [User Set]
    */

    Avatar of apellicone
    apellicone
    Participant

    @apellicone

    Thanks. Will that also handle notifications from friending or commenting?

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

You must be logged in to reply to this topic.