Home › Forums › General Issues › How to show the fields of AСF in email? › Reply To: How to show the fields of AСF in email?
I’ve looked into it again and wp_user_meta()
is just a wrapper for get_metadata()
which caches its results.
I suspect you have made your user edits earlier in the exection of the request, then later in the execution you want to send this email.
You can bust the cache by putting this at the top of your email call:
update_meta_cache( 'user', $user_id );
Please accept my answer on SO too 🙂
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.