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
- LEFT JOIN, INNER OUTER JOIN, LEFT OUTER JOIN is driving me crazy. Please help?
- Hidden woocommerce products still showing up in search results [closed]
- Woocommerce view order link in customer emails
- Filter on a custom product attribute in WooCommerce using meta_query or tax_query [closed]
- Does the woocommerce_order_status_changed hook fire when WooCommerce updates an order status automatically? [closed]
- invalid menu item when upgrading to WordPress 5.5
- Register a new user on wooCommerce using Rest API
- How can i create a custom product search?
- Creating user without username and password
- *Woocommerce* Past Orders Disappeared after changing Stripe Account [closed]
- Need help in handling woocommerce api timeout issue [closed]
- Is this code true or not
- Allow only 1 quantity of particular product in cart WooCommerce
- Hide price and add to cart button on product page only
- How to make a custom button that redirects to a “user specified link while entering product details” woocommerce
- User meta and public function security
- How do I create a filter to hide the One Click Accessibility plugin button in WordPress?
- customers are not showing up in woocommerce
- How to edit wc_get_template_part for archive products
- How to get product category ID based on post?
- Jump to Footer On Scroll – Woocommerce Pages Phones Only
- WordPress Development Workflow
- Loop Through Current Woocommerce Product Categories Sub Categories
- HTTP Error when uploading pictures and problem with the size of images
- add_rewrite_rule() returns 404 page
- Woocommerce Setup not completing
- Unable to enocde the result of wc_get_products
- Notice: Trying to get property of non-object in bodycenter [closed]
- WooCommerce remove billing detail completly