Actions on Activation & Deactivation
Plugins register activation and deactivation hooks. By default, the XXX_Plugin class functions activate() and deactivate are registered respectively. (This is set up in the XXX_main.php file)
To add code to the hooks, override these functions in your XXX_Plugin.php file and add your code
1 2 3 4 5 | public function activate() { } public function deactivate() { } |