Compatibility with Offload Media Plugin
-
I am working on a site with TablePress tables full of links to downloadable files. I am storing the files in an Amazon S3 bucket and I want to restrict access to them, so I was hoping to use the Offload Media plugin:
https://deliciousbrains.com/wp-offload-media/doc/how-to-restrict-access-to-offloaded-media/
However, when I tested this, it didn’t seem to work. I contacted the Offload Media support and got the following answer:
“WP?Offload?Media dynamically rewrites native local media URLs to cloud storage URLs as they are retrieved from the database. So the native URLs are retained in the database and don’t need to be updated.
?
We currently don’t have compatibility with TablePress. You may check this doc regarding compatibility with other plugins:
?
https://deliciousbrains.com/wp-offload-media/doc/compatibility-with-other-plugins/
?
Regarding the image URLs, WP?Offload?Media implements standard WordPress filters when rewriting local media URLs to cloud storage URLs in displayed content:
?
https://deliciousbrains.com/wp-offload-media/doc/developer-guide/#local-to-provider-hooks
?
It’s possible TablePress aren’t implementing those. If that’s the case, the?as3cf_filter_post_local_to_provider
?filter can be used to rewrite any local Media Library URLs to their cloud storage version:
?
https://deliciousbrains.com/wp-offload-media/doc/filtering-urls-in-custom-content/#local-to-provider
?
You may need to confirm with TablePress regarding the filters they implement when displaying content.”So, I just want to confirm whether what I am trying to do is feasible or not. Thanks in advance!
- The topic ‘Compatibility with Offload Media Plugin’ is closed to new replies.