uninstall.php in Block Manager trunk, at uninstall.php
| 1 | <?php |
| 2 | /** |
| 3 | * Uninstall Block Manager |
| 4 | * Deletes all the plugin options when plugin is unistalled. |
| 5 | * |
| 6 | * @since 1.2.2 |
| 7 | * @package Gutenberg_Block_Manager |
| 8 | */ |
| 9 | |
| 10 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 11 | exit; |
| 12 | } |
| 13 | // Delete option: Blocks. |
| 14 | delete_option( 'gbm_disabled_blocks' ); |
| 15 | |
| 16 | // Delete option: Categories. |
| 17 | delete_option( 'gbm_categories' ); |
| 18 | |
| 19 | // Delete option: Patterns. |
| 20 | delete_option( 'gbm_disabled_patterns' ); |
| 21 |