Moderation Question/Request

This topic contains 4 replies, has 2 voices, and was last updated by  Alex Rollin 4 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #5364

    Jennifer Filgate
    Buyer
    Post count: 3

    Hi,

    I would also like to get the function to extend the filter ‘uwp_send_admin_email_to’ so that I can send the approve/deny email to more than just the site admin.

    How long should it take before the admin receives the email to approve/deny a new user registration? I’m testing and still haven’t received it. I’ve checked my spam email as well.

    Thanks

    #5365

    Jennifer Filgate
    Buyer
    Post count: 3

    If I add an SMTP plugin to my WordPress installation, will the emails be sent out faster?

    #5368

    Alex Rollin
    Moderator
    Post count: 27815

    The speed of email sending is something to take up with your host. If your host is like most hosts these days, they would probably prefer that you do not use them for sending email and instead send using SMTP.

    The ‘fastest’ sending for email will be a commercial API service like SES or Sparkpost.

    
    
    
    add_filter('uwp_send_admin_email_to', 'uwp_send_admin_email_to_cb', 10, 2);
    function uwp_send_admin_email_to_cb($site_email, $message_type){
    
        $email_to = array();
        if('mod_admin' == $message_type){
            $email_to[] = get_option('admin_email');
            $email_to[] = 'info@someadmin.com'; // Change to your email address
            // $email_to[] = 'info2@someadmin.com'; you can add more email addresses like this
            $site_email = $email_to;
        }
    
        return $site_email;
    }
    
    #5373

    Jennifer Filgate
    Buyer
    Post count: 3

    And just to confirm, I add this code to my functions.php file?

    Edit – I did a test in functions.php and it worked. So I’ve answered my own question. Thanks!

    #5394

    Alex Rollin
    Moderator
    Post count: 27815

    We recommend you use the code snippets plugin.

    https://wordpress.org/plugins/code-snippets/

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket