Home › Forums › General Issues › acf form: edit post title and post_status › Reply To: acf form: edit post title and post_status
I just replied to another post that is along the same lines as this one. The concept of that you want to do is there. http://support.advancedcustomfields.com/forums/topic/radio-field-conditional-in-afc_form/
In the pre_save_post function to do 1 your would include code in the if
if( $post_id !== 'new_post' ) {
// change post status
return $post_id;
}
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.