Home › Forums › ACF PRO › ACF Form not saving data › Reply To: ACF Form not saving data
Oops sorry John! wp docs state that wp_insert_user should also update details if an ID is supplied, for some reason now when updating info only my custom field data is updating and not the actual wp user fields 🙁
Im updating user details from a separate template..any idea what could be causing this? (sorry!)
$args = array( 'post_id' => $user_id, 'submit_value' => 'Update', 'return' => get_permalink(583), 'uploader' => 'wp', 'fields' => array(field_5683c4ad44c9e, // first name field_5683c4ba44c9f, // last name field_5677c781d76ae, // email field_5683c73b75c26, // standard employee fields field_5683c76375c27, field_5683c77b75c28, field_5683c79675c29, field_5683c7b675c2a, field_5683c7bf75c2b, field_5683c7d275c2c, field_5683c7e775c2d, field_5683c80275c2e, field_5683c81f75c2f, field_5683c83575c30, field_5683c85375c31, field_5683c86475c32) ); acf_form($args);
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!
ACF wouldn’t be so widely used in WordPress if it didn’t have some pretty amazing capabilities. In this article, we look at a few of the features we’ll discuss during “7 things you didn’t know you could do with ACF” at #WPEDecode later this month. https://t.co/5lnsTxp81j pic.twitter.com/Yf0ThPG1QG— Advanced Custom Fields (@wp_acf) March 16, 2023
© 2023 Advanced Custom Fields.