| 1 |
<?php |
| 2 |
|
| 3 |
namespace Templately\Core; |
| 4 |
|
| 5 |
class Maintenance { |
| 6 |
/** |
| 7 |
* Init Maintenance |
| 8 |
* |
| 9 |
* @since 2.0.1 |
| 10 |
* @return void |
| 11 |
*/ |
| 12 |
public static function init(){ |
| 13 |
register_activation_hook( TEMPLATELY_PLUGIN_BASENAME, [ __CLASS__, 'activation' ] ); |
| 14 |
register_uninstall_hook( TEMPLATELY_PLUGIN_BASENAME, [ __CLASS__, 'uninstall' ] ); |
| 15 |
} |
| 16 |
|
| 17 |
/** |
| 18 |
* Runs on activation |
| 19 |
* |
| 20 |
* @since 2.0.1 |
| 21 |
* @return void |
| 22 |
*/ |
| 23 |
public static function activation(){ |
| 24 |
|
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* Runs on uninstallation. |
| 29 |
* |
| 30 |
* @since 2.0.1 |
| 31 |
* @return void |
| 32 |
*/ |
| 33 |
public static function uninstall(){ |
| 34 |
|
| 35 |
} |
| 36 |
} |
| 37 |
|