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