Notify Shop Manager when a new customer account is created
-
Hello,
Using the code found in the following URL, an email notification can be sent to admin when new customer registers.
https://docs.woocommerce.com/document/notify-admin-new-account-created/
To what ‘admin’ term be changed to, in order for the email notification to be sent to Shop Manager rather than the admin?
/** * 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' ); }
Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Notify Shop Manager when a new customer account is created’ is closed to new replies.