What you have makes sense, except that your variable names dont match. You have $object in your function definition and in the function code you are trying to use $order.
Adjusted:
/* SEND ADMIN E-MAIL TO LOGGED IN USER */
/* --- */
add_filter( 'woocommerce_email_recipient_new_order', 'your_email_recipient_filter_function', 10, 2);
/* Add parents e-mail address to new order admin mail */
function your_email_recipient_filter_function($recipient, $order) {
$user_info = get_userdata($order->user_id);
$recipient = $recipient . ', ' . $user_info->user_email;
return $recipient;
}
Related Posts:
- get_user_meta() doesn’t include user email?
- WooCommerce lost password reset flow not working with SendGrid (redirect loop)
- Preventing WooCommerce email sending only on particular conditions
- woocommerce fail to replace template string in email title [closed]
- WooCommerce: display text instead of raw checkbox value email
- Editing Header Titles of each details in woocommerce Order Email [closed]
- Woocommerce : How to attach an custom attachment with customer-processing-order.php email template [closed]
- WooCommerce email text based on category && shipping zone && payment method [closed]
- How to echo billing phone number under My Account in Woocommerce? [closed]
- WooCommerce: Email Notifications
- woocommerce_email_attachments filter arguments [closed]
- Add user data to table when user is created?
- WordPress ‘on behalf of’ email
- WooCommerce: The model of e-mail is displaying only the html, not css [closed]
- How do I hide the purchase note in the WooCommerce ‘order completed’ email?
- Filter WooCommerce Orders query with user meta data
- Add custom order meta to Order Completed email
- Woocommerce: Prevent sending of email when order is “Completed”
- ‘profile_update’ hook alternative for WooCommerce user meta data
- How to add a user custom field into Woocommerce emails?
- Allow WooCommerce existing customers to checkout without being logged in [closed]
- Custom Admin Email Subject for Woocommerce (3.8.0) Orders
- How to delete all customer user account that haven’t placed a single order?
- WooCommerce order complete email logic
- Make this Fast and Queryable
- woocommerce email template detect email recipient
- Adding extra email address who receives email like admin – woocommerce
- Add shipping address to Woocommerce order emails [closed]
- Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]
- Woocommerce emails from gmail not being sent
- Why is my WordPress login credentials missing, but work with WooCommerce?
- WooCommerce Admin order – Only run action if user is loaded
- Create new email in WooCommerce
- How to check if woocommerce_order_item_name is use in email?
- I want to store user password (during registration) in an other table in the same database in addition to the user table MD5 Hash
- WordPress woocommerce new order email not working
- How do I update user email from frontend input field?
- Custom Email via Hook only for completed order
- Access custom meta_data in processing order email
- Switch to user link shortcode
- Update user meta when customer update their first name
- Add custom field address_3 before city in user profile
- How to add (and change the font of) the short product description to order page and customer’s new order e-mail [closed]
- How to merge 2 accounts with same email address after merge of 2 woocommerce databases
- How to send Woocommerce Customer Details (Name, Email and Phone Number) to Admin upon signup
- How to change lost password email text using custom plugin wordpress?
- Using admin email in billing address
- Forgot password flow does not work, getting email with a link but after clicking link it’s not working
- Send a different “thank you” email based on payment method
- Customer Email Address
- Updating WooCommerce product field when product author updates profile field
- WordPress user ID prefix
- Update a user meta key based on WooCommerce product purchase
- Adding time of order to Admin email for new order
- Get user active posts randomly
- Woocommerce customer role doesn’t change if user is already a subscriber [closed]
- how to add custom reviews button in woocommerce order complete generated mail
- How to add coupon expiry date into the followup emails?
- Conditional email recipient based off Shipping Method [closed]
- How to store ACF from product in user_meta?
- Some Admin disappeared
- Manual Woocommerce Complete order Emails
- Turkish Character Problem on mailing
- How to override email text New Customer Order?
- Woo-Commerce new order email no style attached
- Change WooCommerce registration form/way?
- WooCommerce – How to add a custom field to only a specific email template [closed]
- Insert a custom field as a second email address to a completed order in WooCommerce
- Want to add Number of Products added by each shop manager in users list
- How to handle WordPress account for terminated employee
- Woocommerce admin order email customize – remove product short description
- Add a product for all users based on a condition (WooCommerce)
- How to implement my product variations/attributes in my contact form 7 email?
- How to change the default registration email ? (plugin and/or non-plugin)
- Woocommerce – Add a product to cart programmatically via JS or PHP [closed]
- ( Woocommerce) How to get the user belonging to an order? [closed]
- Get the product list of a given Category ID
- List of JS events in the WooCommerce frontend
- get woocommerce My account page link
- user_login vs. user_nicename
- WooCommerce: How to edit the get_price_html
- Get woocommerce product price by id [closed]
- Product categories don’t appear as option to build menu
- Adding fields to the “Add New User” screen in the dashboard
- Difference between update_user_meta and update_user_option
- Make WooCommerce pages accessible for logged in users only
- WooCommerce Variable Product Price not showing on single product page
- How to filter users on admin users page by custom meta field?
- Confirmation required on email change
- How do you update user_email on the front end in WP 3.3?
- How to override WooCommerce template files?
- Woocommerce add extra field to variation product
- How do you access the Product Short Description in a WooCommerce email template? [closed]
- Getting the gallery images from products in woocommerce?
- How to get current product category ID in product archive page
- Get url of product’s images (woocommerce)
- WooCommerce prices location in DB
- Automatically delete inactive users after 2 months
- Check if user is admin by user ID
- Order by rating not works in wp_query