1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. Disable Admin Notification after Registration

Disable Admin Notification after Registration

Introduction

BuddyBoss does not provide a built-in option to disable admin notifications after user registration. You can use a custom function code to prevent the admin from receiving emails when new users register. The focus keyword for this guide is Disable Admin Notification.

Custom Workaround

  1. Navigate to WordPress dashboard > Appearance > Theme Editor
  2. Under Select theme to edit, choose your active theme (e.g., BuddyBoss Child), then click Select
  3. In Theme Files, select Theme Functions (functions.php)
  4. Append the following code just before the closing PHP tag ?>:
remove_action( 'register_new_user', 'wp_send_new_user_notifications' );

remove_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10 );

add_action( 'register_new_user', 'bb_wp_send_new_user_notifications', 10, 2 );

add_action( 'edit_user_created_user', 'bb_wp_send_new_user_notifications', 10, 2 );

function bb_wp_send_new_user_notifications( $user_id, $notify = 'user' ) {

    switch($notify) {

        case 'admin':

            $notify = 'none';

            break;

        case 'both':

            $notify = 'user';

            break;

    }

    wp_new_user_notification($user_id, null, $notify);

}
  1. Click Update File to save the changes

Any modifications are considered custom work. Please review our Support Policy for more details.

Troubleshooting and FAQs

Q: The admin still receives notifications, what should I check?

A: Ensure the code was added correctly just before the closing PHP tag ?>. Clear any caching plugins or server-side cache if necessary

Q: Can I restore the default notifications?

A: Yes. Remove the custom function code to revert to the default WordPress behavior

Q: Will this affect user notifications?

A: No. This code only modifies notifications sent to the admin. Users will still receive their registration emails

Q: Who can I contact for further assistance?

A: Submit a support ticket through your BuddyBoss account dashboard for personalized help

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

  • This field is hidden when viewing the form
  • This field is for validation purposes and should be left unchanged.

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.