Home › Forums › ACF PRO › ACF Form not saving data › Reply To: ACF Form not saving data
In order to create a new user the arguments for acf_form would need to look something like this
$args = array(
'post_id' => 'new_user',
'submit_value' => 'Register',
'return' => get_permalink(54),
'uploader' => 'wp',
'field_groups' => array(142)
);
function user_register_pre_save( $post_id ) {
// check if this is to be a new post
if( $post_id != 'new_user' ) {
return $post_id;
}
// rest of your function here...
and then the beginning of your pre_save_post filter would look something like this
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.