• Currently all 5 of our admins are getting the New Member Request email. Is there a way to specify which admin user gets it? Or not send the New Member Request email at all?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi @gailp

    Until we finish up any potential easier methods to specify these details, the best I can offer is a code snippet, provided below.

    You’ll want to switch out the “fakeaddy” emails with the ones you actually want to be notified at.

    This would go in your child theme/active theme functions.php file.

    Let me know if you have any questions or need some help with it.

    function gailp_bpro_single_admin_notice( $default_admins ) {
    
    	// BuddyPress Registration Options will be expecting an array.
    	$new_admins = array();
    
    	foreach(
    		array(
    			'[email protected]',
    			'[email protected]',
    			'[email protected]'
    		) as
    		$user_email
    	) {
    		$user = get_user_by( 'email', $user_email );
    		if ( false !== $user ) {
    			$new_admins[] = $user;
    		}
    	}
    
    	if ( ! empty( $new_admins ) ) {
    		return $new_admins;
    	}
    
    	return $default_admins;
    }
    add_filter( 'bprwg_bp_notification_users', 'gailp_bpro_single_admin_notice' );
    
Viewing 1 replies (of 1 total)
  • The topic ‘New Member Request Email’ is closed to new replies.