Skip to content

Installation

alex_prokopenko edited this page Jan 12, 2018 · 3 revisions

Simple installation

To install a plugin you just need to put the plugin files into the wp-content/plugins/wordpress-theme-framework directory. After installation you need to activate it on Dashboard > Plugins page.

Must-use installation

If you do not plan to use another theme except the one you build with our Theme Framework, then you may add it as must-use plugin. In this way it won't appear on the Plugins page and user can't deactivate it.

To do this put the plugin files into the wp-content/mu-plugins/wordpress-theme-framework directory. By default WordPress loads only files inside wp-content/mu-plugins and doesn't load any folder-based plugin. To make it works you need to create a single file, which loads the plugin core like this:

wp-content/mu-plugins/wordpress-theme-framework.php

<?php
    require WPMU_PLUGIN_DIR . '/wordpress-theme-framework/wordpress-theme-framework.php';

Next: Creating a Theme

Clone this wiki locally