Melapress / wsal-extension-template

This is the main template for all the WP Activity Log plugin extensions. This is used internally by the developers as a "core"to update all the other extensions.

Home Page:https://wpactivitylog.com/extensions/mainwp-activity-log/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add functions to run on plugin install/uninstall/upgrade

martinkrcho opened this issue · comments

It would be handy to have hooks in WP Activity Log that fire on plugin install/uninstall and during an upgrade procedure.

An extension could create a subclass of WSAL_Extension_Core and override couple of stub methods in order to do what it wants to do on the main plugin install/uninstall/upgrade.

We should discuss if this is enough. Does it make sense for the extension plugin to do anything without the main plugin?

As far as I see it, the extension should only do one thing if WSAL is not running, and thats to tell the user to activate/install it - though Robert may think of some cool thing we could do in addition :)