refactor: clear up Plugin init, add activator/deactivator hooks
This commit is contained in:
parent
12b1eb556e
commit
0d1e0d75bb
4 changed files with 595 additions and 23 deletions
33
src/includes/class-footnotes-deactivator.php
Normal file
33
src/includes/class-footnotes-deactivator.php
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
/**
|
||||
* Fired during plugin deactivation
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @package footnotes
|
||||
* @subpackage footnotes/includes
|
||||
*/
|
||||
|
||||
/**
|
||||
* Fired during plugin deactivation.
|
||||
*
|
||||
* This class defines all code necessary to run during the plugin's deactivation.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @package footnotes
|
||||
* @subpackage footnotes/includes
|
||||
*/
|
||||
class Plugin_Name_Deactivator {
|
||||
|
||||
/**
|
||||
* Runs when the Plugin is deactivated.
|
||||
*
|
||||
* Currently NOP.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
public static function deactivate() {
|
||||
// Nothing yet.
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue