Thomas Griffin and Gary Jones have been at work creating a class that will, they say, “revolutionize how plugins can be handled in WordPress themes.” Their class, TGM Plugin Activation, allows theme authors to include plugins with their theme or have them automatically downloaded from the WordPress Plugin Directory and prompt the users to install and activate them when they activate the theme.
It leverages code found within WordPress to handle the installation and activation of the plugins the authors use in the creation of the theme. For instance, it uses the WP_Filesystem Abstraction class to find the best way to install the plugins based on the user’s server setup.
The latest version offers up an API for developers to make using the class in their theme easier. More information about features and future additions is available in their readme file on GitHub.
What do you think of this as a method for more simply including plugins with WordPress themes? Do you think you’ll be including this in your themes? Give your opinion in the comments.