• WebBee

    (@bridgetdesigns)


    Hi, I am not receiving admin notifications when a user adds a new account. I get the user emails, but not the admin ones. I have tried using the wp smtp plugin but that didn’t help,. I have checked and all the notifications are turned on.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter WebBee

    (@bridgetdesigns)

    I am also using this bit of custom code from a forum as my client wants to be notificed when someone updates their profile, not when they add one.

    // Set profile to under review after edits
    add_action(‘um_user_edit_profile’, ‘um_post_edit_pending_hook’);
    function um_post_edit_pending_hook( $args ){
    $user_id = $args[‘user_id’];
    if ( is_super_admin() ) {
    return;
    }
    update_user_meta( $user_id, ‘account_status’, ‘awaiting_admin_review’);

    }

    It wasn’t working before I added this either.

    Hi !

    I had the same problem.

    Place this code in your functions.php :

    add_action( 'user_register', 'so27450945_user_register', 10, 1 );
    function so27450945_user_register( $user_id )
    {
        $user = get_user_by( 'id', $user_id );
    
        $blogname = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    
        $message  = sprintf( __( 'New user registration on your site %s:' ), $blogname ) . "\r\n\r\n";
        $message .= sprintf( __( 'Username: %s'), $user->user_login ) . "\r\n\r\n";
        $message .= sprintf( __( 'E-mail: %s'), $user->user_email ) . "\r\n";
    
        @wp_mail( get_option( 'admin_email' ), sprintf( __( '[%s] New User Registration' ), $blogname ), $message);
    }

    Normally it should work !

    Keep me informed

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @bridgetdesigns,

    Where does this user adds account? Are you pertaining to the UM register form on the front-end?

    Thanks.

    Thread Starter WebBee

    (@bridgetdesigns)

    Hi thanks for you help guys. Yes I am trying to get it so after someone has registered a new profile using the front end form for UM, if they then update or change that profile in the future, it puts the account to pending and sends both the user and the admin an email to tell them that.

    I don’t want this to apply to the standard registration on the site, just UM profiles.

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

The topic ‘Admin emails not arrving’ is closed to new replies.