• Resolved khoavo

    (@khoavo)


    Hey there, could you please check on this for me:

    1) I created a custom plugin with the following codes to disable WordPress System Email sent to Admin whenever there’s a New User Registration:

    if ( !function_exists( ‘wp_new_user_notification’ ) ) :
    function wp_new_user_notification( $user_id, $plaintext_pass = ” ) {
    return;
    }
    endif;

    It seems to work, but my question for you is, does this also stop notification sent to the Customer after they Signup for an Account during checkout? I HOPE NOT.

    For example: https://prnt.sc/r2n6z3 – and – https://prnt.sc/r2n6su

    I was trying to find a solution to just stop WP from sending a notification to Admin whenever there’s a new user registration. And this is the only code I found to have work, but I wasn’t sure if it also affects the notification sent to the customer asl well? Since WP has on new user function that covers both Admin and to Users I believe.

    2) On one of my previous email, I asked about the white gap space under the footer shown when there’s not enough content to cover the page. You said on an actual email it would flush down to the bottom without showing the gap. But after sending a test to my Outlook Email, I still see the gap: https://prnt.sc/r2n6vk

    Let me know and Thank you in advance!

    KV

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter khoavo

    (@khoavo)

    Hey there, please disregard my previous question on the New User Registration email notification to Admin, I figured out a new function code, tested it on a live order and it’s all good, Thanks.

    But back to my other comment about the white gap space shown on the actual Email Notifications from your Fluid template. When there’s not enough content or top and bottom margins, the footer is pushed upward, leaving a large white gap space.

    Anyway to fix this? Here’s some screenshots from a New Account Email and Password Reset: https://prnt.sc/r2yye9 and https://prnt.sc/r2yy7a

    Thanks!

    Hey,
    Emails do not have a fixed height that they need to fill, every inbox is different if there is space below your email it is because you’re viewing your email in an inbox area that is larger then the email height. Nothing is “pushing” the footer up there is css for that, the footer simple comes at the end of the email. If you want to add more content to your email you can but you can’t force a footer to stick to the bottom of whatever email viewport you happen to be viewing on.

    I hope that makes sense.

    Ben

    Thread Starter khoavo

    (@khoavo)

    Yeah, I get it now. Thanks for the clarification.

    Hey, couple more things:

    1) Is there a way to increase the size of the thumbnail image on the New Order and Order Processing Email? It’s a bit small: https://prnt.sc/r3spus

    2) I noticed the Billing and Shipping Address goes on its own block. Is there a CSS so it can be on the same block? https://prnt.sc/r3spri

    Thanks!

    hannah

    (@hannahritner)

    Hey @khoavo,
    Sorry for the delay! I will send this over to Ben (the developer) and he will respond as soon as he is available.
    Thanks for your patience!

    Hannah

    Thread Starter khoavo

    (@khoavo)

    No problem, Thanks!

    Hey,
    1. You would have to add code, see here: https://www.ads-software.com/support/topic/increase-size-of-product-image-on-email/

    2. If you turn off the fluid width then they would be next to each other but with the fluid width on where the content can resize for mobile screens, they are in separate rows.

    Ben

    Thread Starter khoavo

    (@khoavo)

    Yup, got it. Thanks for the response.

    Hi could you share the code how you were able to stop new user registration emails going to admin ?

    Thread Starter khoavo

    (@khoavo)

    @manish

    Here you go buddy:

    Insert into function.php in Child Theme:

    // To Disable Default Notification to Admin from New User Registration

    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’, ‘mytheme_wp_send_new_user_notifications’, 10, 2 );
    add_action( ‘edit_user_created_user’, ‘mytheme_wp_send_new_user_notifications’, 10, 2 );

    function mytheme_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);
    }

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Disable New User Registration Email To Admin?’ is closed to new replies.