| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Fired during plugin deactivation |
| 5 |
* |
| 6 |
* @package Tableberg |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace Tableberg; |
| 10 |
|
| 11 |
/** |
| 12 |
* Fired during plugin deactivation. |
| 13 |
* |
| 14 |
* This class defines all code necessary to run during the plugin's deactivation. |
| 15 |
* |
| 16 |
* @since 1.0.2 |
| 17 |
* @author Imtiaz Rayhan <imtiazrayhan@gmail.com> |
| 18 |
*/ |
| 19 |
class Deactivator |
| 20 |
{ |
| 21 |
|
| 22 |
public static function deactivate() |
| 23 |
{ |
| 24 |
delete_option('tableberg_individual_control'); |
| 25 |
delete_option('tableberg_block_properties'); |
| 26 |
delete_option('tableberg_global_control'); |
| 27 |
delete_option('tableberg_version'); |
| 28 |
|
| 29 |
delete_transient('_welcome_redirect_tableberg'); |
| 30 |
delete_option('tableberg_installDate'); |
| 31 |
} |
| 32 |
} |
| 33 |
|