{"id":6985426,"date":"2016-01-25T14:37:16","date_gmt":"2016-01-25T14:37:16","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/update-image-programmatically\/"},"modified":"2016-08-31T00:51:47","modified_gmt":"2016-08-31T00:51:47","slug":"update-image-programmatically","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/update-image-programmatically\/","title":{"rendered":"Update Image programmatically"},"content":{"rendered":"<p>I want to update image field programmatically<\/p>\n<p>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.<\/p>\n<p>update_field(&#8216;userphoto_image_file&#8217;, &#8216;What should i pass here?? Attachment ID or something else?, &#8216;user_id&#8217;);<\/p>\n<p>Thanks<\/p>\n<p>https:\/\/wordpress.org\/plugins\/user-photo\/<\/p>\n","protected":false},"template":"","class_list":["post-6985426","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6985426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6985426\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6985426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}