• Resolved Nuno Sarmento

    (@nunosarmento)


    Hi there,

    Thank you for making the plugin available for everyone.
    Is it possible to trigger an admin email notification for bbpress “Pending Signups”.

    Thank you,
    Nuno

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Hi Nuno!

    No, not at the moment 🙁

    We have a bbPress integration plugin but it adds only a few triggers.

    I’m adding this feature to our backlog.

    Thread Starter Nuno Sarmento

    (@nunosarmento)

    Hi Kuba,

    Thank you for your fast response.

    I’ve manage to work out something, I’m posting here the solution in case someones need it

    /*** E-mail notification if new WordPress user account is pending ***/
    
    function my_function( $user_id, $user_login, $user_password, $user_email, $usermeta ) {
    
    // Send the email notification.
    
    $to = 'mail1@example.com';
    
    $body = 'New user on pending signups list';
    
    $headers = array(
    
    'Content-type: text/html',
    
    'Cc: Email 2 Hunt<mail2@example.com>',
    
    'Cc: Email 3 <mail2@example.com>',
    
    );
    
    wp_mail( $to, $user_login . ' has just registered', $body, $headers );
    
    }
    
    add_action( 'bp_core_signup_user', 'my_function', 10, 5 );

    Thank you
    Nuno

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Nice! We can build around that in the integration plugin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bbpress “Pending Signups” notification’ is closed to new replies.