Skip to content

Instantly share code, notes, and snippets.

@woogists
Last active November 21, 2023 16:19
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save woogists/caed11e50bb9ebc7b557eb916e008ef0 to your computer and use it in GitHub Desktop.
[General Snippets] Notify admin when a new customer account is created
/**
* Notify admin when a new customer account is created
*/
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' );
}
@cr0co
Copy link

cr0co commented Jul 13, 2021

hm does not work for me. no error is showing, no email is coming (changed admin to my user ofc. )

@Cliff-FK
Copy link

same here....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment