Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wpf_sync_shipping_email( $customer_data, $order ) {
- if ( ! $order->get_user_id() ) {
- $customer_data['user_email'] = $customer_data['shipping_email'];
- $customer_data['billing_email'] = $customer_data['shipping_email'];
- }
- return $customer_data;
- }
- add_filter( 'wpf_woocommerce_customer_data', 'wpf_sync_shipping_email', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement