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.
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.
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 theload-(page)
hook.The only possible work-around I can think of here would be a redirect between activation and the success message.