Skip to content
Examples of using Amazon S3 and CloudFront's filters
Branch: master
Clone or download
ianmjones Merge pull request #20 from deliciousbrains/minio-example
Added custom S3 API usage example for MinIO.
Latest commit 24226e9 Apr 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Fixed name in readme. Oct 18, 2018
amazon-s3-and-cloudfront-tweaks.php Added custom S3 API usage example for MinIO. Apr 18, 2019

README.md

WP Offload Media Tweaks

This is a WordPress plugin, meant as a starting point for developers to tweak WP Offload Media and WP Offload Media Lite using WordPress filters.

Installation

Create a /amazon-s3-and-cloudfront-tweaks/ folder in /wp-content/plugins/ and simply drop the amazon-s3-and-cloudfront-tweaks.php file into it. Then go to the Plugins page in your WordPress dashboard and activate it.

Setup

Open the amazon-s3-and-cloudfront-tweaks.php file and take a look at the __construct() function. You will notice that all the calls to add_filter() are commented out. So, at the moment the plugin does nothing even though it's activated. To enable a filter, simply uncomment the appropriate add_filter() line, but please make sure the corresponding function further down in the plugin's source has been adjusted to fit your needs.

Most of the examples in the plugin's handler functions will need editing before they can be used.

You can’t perform that action at this time.