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 430 forks source link

Small UX issue - a refresh is required for plugin functionality #617

Open asadkn opened 8 years ago

asadkn commented 8 years ago

Suppose you're activating a plugin that will register a menu or a sub-menu, let's say "Theme Options". In a normal workflow, when the plugin is activated in WordPress, the plugin menu is available immediately.

However, when using TGMPA, the menu "Theme Options" won't be registered until a refresh. Core activates the plugin before any hooks are run, so it's not a problem there. But TGMPA plugin activation itself runs after admin_menu at the load-(page) hook.

The only possible work-around I can think of here would be a redirect between activation and the success message.