WooCommerce – Notify admin when a new customer account is created

<?php // Do not include this if already open!
/**
* Code goes in theme functions.php.
*/
add_action( 'woocommerce_created_customer', 'woocommerce_created_customer_admin_notification' );
function woocommerce_created_customer_admin_notification( $customer_id ) {
wp_send_new_user_notifications( $customer_id, 'admin' );
}

view raw
functions.php
hosted with ❤ by GitHub

Posted by Mike Jolley

I help build things at Automattic.

One Reply to “WooCommerce – Notify admin when a new customer account is created”

  1. […] Here’s a quick snippet from Mike Jolley to notify a site admin when a WooCommerce customer registers. […]

Comments are closed.