• Resolved joelnewcomer

    (@joelnewcomer)


    Hi! Thank you for this excellent plugin. Is this plugin searching through post meta on every post and page to update image URLs after the image name is changed? It doesn’t seem to be working on our website that uses Advanced Custom Fields. Is it possible to make it update image URLs that are inside arrays in post meta? Thanks for your help!

    Joel

    • This topic was modified 6 years, 4 months ago by joelnewcomer.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi Joel,

    Thank you very much ?? I actually thought about it a few times, and I did a lot of work with another developer on making my other plugin “Media Cleaner” compatible with ACF. It’s a tough job! ?? We could try to do it for Media File Renamer, the problem is that ACF encodes all its data, and the plugin wouldn’t be able to easily rename all those strings, it would need to parse every post, one by one, decode and check their data. So basically the Rename button would need a progress bar and a more complex asynchronous process. In the case of the bulk, that will also complicate many parts of the plugin too. So yes, I have this in mind, but hopefully, I will find a better way than this way, which is a bit too heavy.

    Thread Starter joelnewcomer

    (@joelnewcomer)

    Thanks for taking the time to write a very thorough response. I was afraid you might say something like that, but it makes sense. I wanted to follow up with another question. I see that you have filters, but do you have hooks so that I could write some code to update some specific ACF fields when a file is renamed? Thanks again!

    Plugin Author Jordy Meow

    (@tigroumeow)

    Sorry for the late reply. That’s a copy/paste from my website, but here is some info:

    If you have a developer working for you, then he/she will be able to understand how your install work, and to teach Media File Renamer how to update those references. You can use the mfrh_url_renamed (if you want to handle the new URL for this filename) or the mfrh_media_renamed (if you want to handle the filename on your server) actions. Have a look at the examples in the plugins/custom.php file in the plugin directory.

    Thread Starter joelnewcomer

    (@joelnewcomer)

    That’s exactly what I was looking for. Thanks Jordy!

    Plugin Author Jordy Meow

    (@tigroumeow)

    If you write the code for it, please share it with me, I will add it to this custom file, we can also create a new thread and a gist (https://gist.github.com/) so that other users can participate, enhance and fix ?? Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Updating post meta’ is closed to new replies.