A developer plugin for WordPress that ensures compatibility between hummanmade / S3 Uploads and WP All Import. It disables S3 Uploads while WP All Import is being viewed or used in the admin. This ensures the plugin can operate on the uploads directory normally.
Installation using Composer
$1 This package uses Composer Installers to install the package in the Must Use plugins directory (/wp-content/mu-plugins):
composer require nyco/wp-s3-all-import-compatibility
Not using Composer? Download an archive of the code and drop it into the mu-plugins directory.
$2 Create a proxy PHP loader file inside the mu-plugins directory, or use the one included with the plugin:
mv wp-content/mu-plugins/wp-s3-all-import-compatibility/autoloader-sample.php wp-content/mu-plugins/wp-s3-all-import-compatibility.php
Ensure your S3-Uploads folder is all lowercase, i.e. s3-uploads
. Since the folder is case sensitive, S3-Uploads
will not work.
The sample autoloader contains the basic code required to initialize the plugin. It will add hooks necessary to deactivate S3 Uploads and reactivate when necessary while using WP All Import.
The Mayor's Office for Economic Opportunity (NYC Opportunity) is committed to sharing open source software that we use in our products. Feel free to ask questions and share feedback. Interested in contributing? See our open positions on buildwithnyc.github.io. Follow our team on Github (if you are part of the @cityofnewyork organization) or browse our work on Github.