-
Notifications
You must be signed in to change notification settings - Fork 4
Installation
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.
To install the Raccoon Plugin in your WordPress project, you can :
-
Clone the repository in your WordPress plugin directory :
git clone https://github.com/hiwelo/raccoon-plugin.git
-
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).
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.
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');