How to get file URL after replacement (string)
-
Hello,
Great plugin. Thanks for the effort.How can I get the string of the image URL AFTER replacement? I need to use that URL to do a regex comparison dynamically on my site.
For instance, before using your plugin, I was getting the image URL by calling $attachment->guid (which returns only the image URL – example: https://www.mysite.com/wp-content/uploads/2018/03/18/filename.jpg).
After using your plugin, if I use the same variable ($attachment->guid), I still get the same URL (https://www.mysite.com/wp-content/uploads/2018/03/18/filename.jpg)… instead of (https://storage.googleapis.com/stateless-www-mysite-com/2018/03/18/filename.jpg).
Thank you!
- The topic ‘How to get file URL after replacement (string)’ is closed to new replies.