woogists
3/11/2018 - 4:54 PM

[WooCommerce Core] Notify admin when a new customer account is created

[General Snippets] Notify admin when a new customer account is created


/**
 * 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' );
}