trait
5 years ago
__branch.php
5 years ago
activate.php
5 years ago
data.php
5 years ago
hooks.php
5 years ago
menu.php
5 years ago
metabox.php
5 years ago
output.php
5 years ago
utility.php
5 years ago
activate.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | class SSP_Activate { |
| 4 | |
| 5 | /** |
| 6 | * 外部からのインスタンス化を防ぐ |
| 7 | */ |
| 8 | private function __construct() {} |
| 9 | |
| 10 | |
| 11 | /** |
| 12 | * プラグイン有効化時の処理 |
| 13 | * Function for the plugin activated. |
| 14 | */ |
| 15 | // public static function plugin_activate() {} |
| 16 | |
| 17 | |
| 18 | /** |
| 19 | * プラグイン停止時の処理 |
| 20 | * Function for the plugin deactivated. |
| 21 | */ |
| 22 | // public static function plugin_deactivate() {} |
| 23 | |
| 24 | |
| 25 | /** |
| 26 | * プラグインアンインストール時の処理 |
| 27 | * Function for the plugin uninstalled. |
| 28 | */ |
| 29 | public static function plugin_uninstall() { |
| 30 | foreach ( SSP_Data::DB_NAME as $db_name ) { |
| 31 | delete_option( $db_name ); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | } |
| 36 |