uninstall.php in Code Snippets 3.10.1, at uninstall.php
| 1 | <?php |
| 2 | /** |
| 3 | * Cleans up data created by this plugin |
| 4 | * |
| 5 | * @package Code_Snippets |
| 6 | * @since 2.0.0 |
| 7 | */ |
| 8 | |
| 9 | namespace Code_Snippets; |
| 10 | |
| 11 | use Code_Snippets\Core\Uninstaller; |
| 12 | |
| 13 | // Ensure this plugin is actually being uninstalled. |
| 14 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) || ( defined( 'CODE_SNIPPETS_PRO' ) && CODE_SNIPPETS_PRO ) ) { |
| 15 | return; |
| 16 | } |
| 17 | |
| 18 | require_once __DIR__ . '/php/Core/Uninstaller.php'; |
| 19 | |
| 20 | $uninstaller = new Uninstaller(); |
| 21 | $uninstaller->uninstall_plugin(); |
| 22 |