Home › Forums › Bug Reports › ACF_Form() Security Issues › Reply To: ACF_Form() Security Issues
Hi guys
Thanks for the topic.
I’ve been thinking about this issue for a while now and am starting to think that the acf_form() $args need to be registered before the acf_form_head() function.
What do you think of a new function called acf_register_form( $args ) which could be run from your functions.php file (or on the page template)? The acf_form() function could then accept a single string param to identify the form id.
This would allow the acf_form_head() function to load the form $args without the need of posting them.
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.