{"id":16978879,"date":"2023-08-17T01:30:42","date_gmt":"2023-08-17T01:30:42","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/trigger-image-replace-with-php-function\/"},"modified":"2023-08-17T01:30:42","modified_gmt":"2023-08-17T01:30:42","slug":"trigger-image-replace-with-php-function","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/trigger-image-replace-with-php-function\/","title":{"rendered":"Trigger image replace with PHP function"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Is it possible to trigger the image replacement with a function? Let\u2019s say I pass a new image URL and an existing URL to a function and then the new image replaces the existing?<\/p>\n","protected":false},"template":"","class_list":["post-16978879","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16978879","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\/16978879\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16978879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}