mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
renaming the plugin activation and deactivation classes
Signed-off-by: Tom McFarlin <tom@tommcfarlin.com>
This commit is contained in:
parent
766b47b643
commit
b426fbe514
4 changed files with 72 additions and 0 deletions
36
plugin-name/trunk/includes/class-plugin-name-activator.php
Normal file
36
plugin-name/trunk/includes/class-plugin-name-activator.php
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @TODO: Short description (no period for file headers)
|
||||||
|
*
|
||||||
|
* @TODO: Long description.
|
||||||
|
*
|
||||||
|
* @package Plugin_Name
|
||||||
|
* @author Your Name <email@example.com>
|
||||||
|
* @license GPL-2.0+
|
||||||
|
* @link http://example.com
|
||||||
|
* @copyright 2014 Your Name or Company Name
|
||||||
|
*/
|
||||||
|
class Plugin_Name_Activator {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @TODO: Short description. (use period)
|
||||||
|
*
|
||||||
|
* @TODO: Long description.
|
||||||
|
*
|
||||||
|
* @since x.x.x
|
||||||
|
*
|
||||||
|
* @param type $var Description.
|
||||||
|
* @param array $args {
|
||||||
|
* Short description about this hash.
|
||||||
|
*
|
||||||
|
* @type type $var Description.
|
||||||
|
* @type type $var Description.
|
||||||
|
* }
|
||||||
|
* @param type $var Description.
|
||||||
|
*/
|
||||||
|
public static function activate() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
36
plugin-name/trunk/includes/class-plugin-name-deactivator.php
Normal file
36
plugin-name/trunk/includes/class-plugin-name-deactivator.php
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @TODO: Short description (no period for file headers)
|
||||||
|
*
|
||||||
|
* @TODO: Long description.
|
||||||
|
*
|
||||||
|
* @package Plugin_Name
|
||||||
|
* @author Your Name <email@example.com>
|
||||||
|
* @license GPL-2.0+
|
||||||
|
* @link http://example.com
|
||||||
|
* @copyright 2014 Your Name or Company Name
|
||||||
|
*/
|
||||||
|
class Plugin_Name_Deactivator {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @TODO: Short description. (use period)
|
||||||
|
*
|
||||||
|
* @TODO: Long description.
|
||||||
|
*
|
||||||
|
* @since x.x.x
|
||||||
|
*
|
||||||
|
* @param type $var Description.
|
||||||
|
* @param array $args {
|
||||||
|
* Short description about this hash.
|
||||||
|
*
|
||||||
|
* @type type $var Description.
|
||||||
|
* @type type $var Description.
|
||||||
|
* }
|
||||||
|
* @param type $var Description.
|
||||||
|
*/
|
||||||
|
public static function deactivate() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue