Home › Forums › Front-end Issues › Front end post submit hook › Reply To: Front end post submit hook
Hi @LeffDesign
No, this is not correct.
The ‘acf/pre_save_post’ is a filter, not an action. You will need to connect this to a custom function which accepts and returns the $post_id parameter. Before returning the $post_id, you can then fire the sendMail() function.
Please read the doc article on creating a post via the acf_form to understand how this filter works:
http://www.advancedcustomfields.com/resources/tutorials/using-acf_form-to-create-a-new-post/
Thanks
E
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.