Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter randy111

    (@randy111)

    Hi actually I found the solution. what you have to do is using wp_get_attachment_metadata() and wp_update_attachment_metadata() functions. To alter the data in attachment_metadata in postmeta in wp database. It’s easier and accurate than directly involving with the ‘_wp_attachment_metadata’. In my case I took an array from get function and change the file path by altering the [‘file’] value and again save the data via update function. worked well.

Viewing 1 replies (of 1 total)