Skip to content

Installation

Damien Senger edited this page Feb 21, 2016 · 2 revisions

To avoid multiple initialization functions in your Theme, Raccoon WordPress plugin allows you to use a JSON or a YAML configuration file: the manifest.

In this file, you can set a lot of themes features proposed by WordPress.

Plugin install

To install the Raccoon Plugin in your WordPress project, you can :

  1. Clone the repository in your WordPress plugin directory : git clone https://github.com/hiwelo/raccoon-plugin.git

  2. If your using Composer and an environment like Bedrock : composer require hiwelo/raccoon-plugin

If you want to install this plugin directly in your WordPress without Composer, I suggest you to install it in the Must-Use Plugins mu-plugins/ directory.

If you want to install this plugin with Composer, note that this package has a specific type (wordpress-muplugin) for a direct installation into the mu-plugins/ directory (like in Bedrock).

Where to create the manifest file

This plugin checks if a manifest file is available in the theme's root directory. If this file is available, it loads all asked features before the loading of your theme.

By default, the plugin check for a manifest.json file.

Use a different manifest filename

If you want to use a different name for the manifest file, you have to set a constant into your functions.php file to indicate the custom filename.

// by example if the `manifest.json` file is here named `raccoon.yaml`
define('RACCOON_MANIFEST_FILE', 'raccoon.yaml');
Clone this wiki locally