TGM Plugin Activation

The best way to require and recommend plugins for WordPress themes (and other plugins).

Recent posts

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.

Features

The TGM Plugin Activation library revolutionizes how plugins can be handled with WordPress themes and other plugins.

By using classes that are utilized within WordPress, the TGM Plugin Activation library can automatically install, update and activate multiple plugins that are either bundled with a theme, downloaded from the WordPress Plugin Repository or downloaded elsewhere on the internet (perhaps a private repository).

The library uses the WP_Filesystem Abstraction class to find the best way to install the plugins - WP_Filesystem searches through a number of methods (Direct, FTP, FTP Sockets, SSH) and determines the best one to use based on the user’s server setup. If any FTP credentials are needed, a form will be displayed to prompt users to input their FTP credentials in order to continue processing the request. The library uses WordPress’ own Plugin_Upgrader and Plugin_Installer_Skin and extensions of other WordPress upgrader classes to handle singular and bulk installations.

Download

The latest stable release is version 2.6.1. The recommended way to get your own package is to use the custom TGMPA Generator.

For older releases and the changelog, visit the Download page.

You can also download other packages (such as the development version) on GitHub.

Requirements

As of version 2.5.0, the TGM Plugin Activation library requires at least WordPress 3.7 and PHP 5.2.4 to work properly.

License

The TGM Plugin Activation library is licensed under the GPL-2.0 or later license.

Back to Top