SHOW:
|
|
- or go back to the newest paste.
1 | - | // http://hookr.io/actions/woocommerce_created_customer/ |
1 | + | |
2 | ||
3 | function admin_email_on_registration($customer_id, $new_customer_data, $password_generated) { | |
4 | $headers = 'From: My Name <myname@example.com>' . "\r\n"; | |
5 | - | // https://codex.wordpress.org/Function_Reference/wp_mail |
5 | + | wp_mail('test@example.org', 'Rejestracja nowego użytkownika', print_r($new_customer_data, true), $headers); |
6 | } |