Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/17/d274877261/htdocs/plugin/wp-content/themes/suffusion/functions/media.php on line 666

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/17/d274877261/htdocs/plugin/wp-content/themes/suffusion/functions/media.php on line 671

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/17/d274877261/htdocs/plugin/wp-content/themes/suffusion/functions/media.php on line 684

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/17/d274877261/htdocs/plugin/wp-content/themes/suffusion/functions/media.php on line 689

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/17/d274877261/htdocs/plugin/wp-content/themes/suffusion/functions/media.php on line 694
Actions on Activation & Deactivation – WordPress Plugin Template

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>