nyco/wp-s3-all-import-compatibility

A developer plugin for WordPress that ensures compatibility between hummanmade / S3 Uploads and WP All Import.

0.0.3 2019-11-20 21:41 UTC

README

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

Initialization

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

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.