Adding the TGM Plugin Activation Script

In this tutorial I will show you how to add the TGM plugin activation script to our WordPress theme. This will allow us to recommend and require plugins to our theme users. We will use this script throughout this tutorial series to include third-party plugins as well as include a plugin we include in our theme package.

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 and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference pre-packaged plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.

You need to have an active subscription to view this content.

Register Here!