Title: Update Image programmatically
Last modified: August 31, 2016

---

# Update Image programmatically

 *  [Jignesh Chudasama](https://wordpress.org/support/users/jignesh-chudasama/)
 * (@jignesh-chudasama)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/update-image-programmatically/)
 * I want to update image field programmatically
 * What actually I want to do is, once user registered using gravity form I want
   to add gravity form image field value into your plugin image field for user.
 * update_field(‘userphoto_image_file’, ‘What should i pass here?? Attachment ID
   or something else?, ‘user_id’);
 * Thanks
 * [https://wordpress.org/plugins/user-photo/](https://wordpress.org/plugins/user-photo/)

The topic ‘Update Image programmatically’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/user-photo.svg)
 * [User Photo](https://wordpress.org/plugins/user-photo/)
 * [Support Threads](https://wordpress.org/support/plugin/user-photo/)
 * [Active Topics](https://wordpress.org/support/plugin/user-photo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-photo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-photo/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jignesh Chudasama](https://wordpress.org/support/users/jignesh-chudasama/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/update-image-programmatically/)
 * Status: not resolved