contention / mu-plugins
Installs: 209
Dependents: 0
Suggesters: 0
Security: 0
Watchers: 1
Open Issues: 0
Type:wordpress-muplugin
Requires
- aws/aws-sdk-php: 3.3.8
- composer/installers: 1.0.21
This package is not auto-updated.
Last update: 2015-11-28 21:31:06 UTC
README
A series of simple 'must use' Wordpress plugins that introduce additional utility functionality, designed to be installed on deployment as a complete self-contained replacement for the /mu-plugins/ directory.
This set of plugins was originally created to enable trouble-free hosting of WordPress sites on ephemeral filesystems such as Heroku, where the filesystem (and therefore any uploaded content and/or changes to the codebase) is wiped on every deployment or restart. It should work on any install of WP where core and plugin updates are managed locally and production code is then pushed to remote production environments.
It is continuously being expanded to include a boilerplate set of 'always on' plugins that introduce additional everyday functionality in terms of running a Wordpress based website - such as ensuring it meets SEO requirements, for example.
Components
- File editor remover - removes links to the WP file editor to prevent changes to production environment theme or plugin source via the WP production backend.
- File cacher - basic file/feed/data cacher (useful for pulling and caching social media feeds, etc).
- Upload to S3 - set of functions and filters that 'bypass' local storage in order to host/serve images and other uploaded documents directly from Amazon S3. Requires an Amazon AWS account.
- SEO - allows content for SEO tags (including FB/OG tags and Twitter tags) to be created on a page by page basis.
- XML sitemap - generates an XML sitemap on the fly at /sitemap.xml
Dependencies
- composer/installers - allows for this directory to act as a direct drop-in replacement for WordPress' /mu-plugins/ directory.
- aws/aws-sdk-php - to allow S3 uploads.
Installing with Composer
When installing with Composer, remember to override the installer path so the plugin files are installed into the /mu-plugins/ directory. You can do this by configuring the installer-paths extra attribute like this:
{
"require": {
"contention/mu-plugins": "dev-master"
},
"extra": {
"installer-paths": {
"wp-content/{$name}/": ["contention/mu-plugins"]
}
}
}
Note, this will overwrite any existing files in the /mu-plugins/ directory.
Remember to also require Composer's autoload.php somewhere in your wp-config.php file, like so:
require_once(ABSPATH.'vendor/autoload.php');
Usage
Coming soon...