Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/17/d274877261/htdocs/plugin/wp-includes/post-template.php on line 284

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/17/d274877261/htdocs/plugin/wp-includes/post-template.php on line 284

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/17/d274877261/htdocs/plugin/wp-includes/post-template.php on line 284

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/17/d274877261/htdocs/plugin/wp-includes/post-template.php on line 284

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() {
    }

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>