Support

Account

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);