How to notify admin when a new customer account is created

By | August 20, 2018

Many of clients want to notify admin when new customer create a new account in their woocommerce store. so they can tag a customer’s account based on the type of purchase they want to make but this is not built in functionality in woocommerce. So how can you do this. So here is my solutions. Let’s have a look.

Add below line of code in your theme’s functions.php file of your active child theme (or theme) and Save the file.

Just change “admin” with the username you want the emails to go to. Your Shop will notify admin every time when a new customer account is created.

add_action( 'woocommerce_created_customer', 'admin_notification_customer_account' );
function admin_notification_customer_account( $customer_id ) {
wp_send_new_user_notifications( $customer_id, 'admin' );