Home › Forums › Backend Issues (wp-admin) › Handle value when updating page and execute function for sending e-mail › Reply To: Handle value when updating page and execute function for sending e-mail
If I well understand, the “Name” comes from a field filled by the user in the same time he changes the value.
I don’t know what is your trigger (a classic save button ? an Ajax request ?), but I presume that you can first use the “acf_update_value” filter to register the new Name, after what you can call your current custom function and bring the Name with get_field('name', $post_id)
. ($post_id is already set as a parameter in your custom function).
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.