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.