Lead Developers:
Thomas Griffin (@jthomasgriffin), Gary Jones (@GaryJ), Juliette Reinders Folmer (@jrf_nl)
Version: 2.5.2
Requires at least: 3.7.0
Tested up to: 4.2.0
TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
- Head to the Releases page and download the latest release zip.
- Extract the class file and place it somewhere in your theme hierarchy.
- Add a
require_once
call withinfunctions.php
(or other theme file) referencing the class file. - Create a function, hooked to
tgmpa_register
, that registers the plugin and configurations.
For steps 3 and 4, it is recommended you view, copy and paste the contents of example.php
and amend to suit. The example.php
file is a model for how you should include the class in your theme.
Detailed documentation on how to configure TGMPA is available on the website.
TGM Plugin Activation is also available as a package installable via Composer:
composer create-project tgmpa/tgm-plugin-activation --no-dev
See the FAQ page.
See https://github.com/TGMPA/TGM-Plugin-Activation/issues for current issues and the guidelines for reporting bugs and enhancements.
Note: TGM Plugin Activation library authors are not responsible for the end-user support for any plugin or theme which uses the library.
See CHANGELOG.md.
If you have a patch, or stumbled upon an issue with TGM Plugin Activation core, you can contribute this back to the code. Please read our contributor guidelines for more information how you can do this.