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

Add "has_notices" as plugin paramater #648

Open scrobbleme opened 7 years ago

scrobbleme commented 7 years ago

It would be great if plugin parameters could have a has_notices (default: true) as well.

true: current behaviour

false:

Background

We are working on a theme, where we reference some dependency which are neither required not recommended. They are just optional. Means: we just provide better support for these plugins or we generally recommend these plugins for their specific purpose. But we don't want to bother the user with the admin notices.

If there is generall interest in such a feature I may also create a pull request for this.

jrfnl commented 7 years ago

Interesting idea. Let's see if there are more people interested in this though before putting in time & effort.

some dependency which are neither required not recommended.

In that case, it's not a dependency and not really what TGMPA is intended to be used for....

scrobbleme commented 7 years ago

In that case, it's not a dependency and not really what TGMPA is intended to be used for....

You are right, but eventually this is correct for "recommended" dependencies as well, as the referencing plugin/theme not really depends on it ;) Still optional, just recommended with a message.