TGMPA / TGM-Plugin-Activation

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.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.76k stars 429 forks source link

Is there a way to call two different instances? #650

Closed manandharsudin closed 7 years ago

manandharsudin commented 7 years ago

Hi there,

I wanted to required a plugin which is not dismissable and a recommend a plugin which is dismissable. Is there a way to call two different instances of TGMPA or any other way to do that? Currently when I recommend and required in separate callback it doesn't works.

Thanks in advance

jrfnl commented 7 years ago

TGMPA is set up to gather all the required/recommended plugins information on one page, both from themes as well as plugins with dependencies. This is by design as it would be pretty bad from an end-user usability perspective if there would be two or more such pages. So no, you can not have two instances of TGMPA.