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.
I noticed that when I clicked on the install button the plugins were correctly installed, so I went to see how the update system works on the WP plugins page.
I found some CSS classes that are needed to update the button during installation and implemented them on the TGMPA_List_Table table row.
I also added the row_actions method by copying it from the parent class, to eliminate the CSS class row-actions, which hide the buttons if you are not with the pointer over the row.
Added some JS code to intercept the wp-plugin-install-success event to redirect to the plugins activation page.
Hello, I tried to fix issue #649
I noticed that when I clicked on the install button the plugins were correctly installed, so I went to see how the update system works on the WP plugins page. I found some CSS classes that are needed to update the button during installation and implemented them on the
TGMPA_List_Table
table row. I also added therow_actions
method by copying it from the parent class, to eliminate the CSS classrow-actions
, which hide the buttons if you are not with the pointer over the row. Added some JS code to intercept thewp-plugin-install-success
event to redirect to the plugins activation page.Tested only with WP 5.3.2