Home › Forums › ACF PRO › email the customer who purchased the product when the custom field is updated › Reply To: email the customer who purchased the product when the custom field is updated
To add to this, are you using WooCommerce for products and orders?
If so, a pseudo answer would be something like:
Look at transition_post_status
When the post is updated, you need to get the post ID
You then need to Get List of WooCommerce Customer Emails Who Purchased a Specific Product
Now you have the customer email, you can use wp_mail()
Hope that helps!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.