Home › Forums › Front-end Issues › Front-End Form Save as Custom Status › Reply To: Front-End Form Save as Custom Status
I am getting the correct $status
value from the form. However, the 'post_status' => $status
is not being correctly passed from the filter acf/pre_post_save as shown in the function above. Regardless of the value of $status
, it still saves the post as published. I’ve even left the post_status
definition in the acf_form()
declaration undefined and blank just to see.
The value of $status
is not being applied correctly.
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.