Anyone a workable solution for this?
Now I don’t see anything so the code is gone but the output becomes blank.
Just to mention again: The shortcodes are added to an ACF textarea field and that field is used as email BODY. So I do not use the regular content field from the post itself.
Any other ideas? I saw your example code online asiel and many people say it works so I guess it does but only for the regular content field and not for ACF fields?
I also tried to activate shortcode within ACF field by adding this to functions.php but again the same blank result:
add_filter('acf/format_value/type=textarea', 'do_shortcode');
add_filter('acf/format_value/type=text', 'do_shortcode');
Anything?
Jackpot!
The shortcake example that does not work. Within the email it outputs this [acf field=\"bookings_field_last_name\"]
@acf-support You’ve replied to my question here:
https://support.advancedcustomfields.com/forums/topic/field-updates-after-post-update
but I believe your given option in your first reply here above would be exactly what I need… I guess.
Am I correct?
What I want to accomplish:
– A visitor makes a booking > A pending post is make with the booking fields filled in inside (booking status is auto set to PENDING) > Admin sets booking status to CONFIRMED > Email to the customer is being send.
I thought your code would be just what I needed but no email is being send…
This is what should happen when OLD and NEW value do not match:
wp_mail( $to, $subject, $body, $headers );
Somehow I can’t post my code here so I had two update my question on STACK.
No errors come up but also NO emails are being send… Can you check the UPDATES code and give me some advise? I know I’m sooooo close here…
CODE:
https://stackoverflow.com/questions/62221356/wordpress-post-update-after-acf-field-updates
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.