| @@ -5,14 +5,17 @@ | ||
| 5 | 5 | * @package Code_Snippets |
| 6 | 6 | * @since 2.0.0 |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -namespace Code_Snippets\Uninstall; | |
| 9 | +namespace Code_Snippets; | |
| 10 | 10 | |
| 11 | +use Code_Snippets\Core\Uninstaller; | |
| 12 | + | |
| 11 | 13 | // Ensure this plugin is actually being uninstalled. |
| 12 | 14 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) || ( defined( 'CODE_SNIPPETS_PRO' ) && CODE_SNIPPETS_PRO ) ) { |
| 13 | 15 | return; |
| 14 | 16 | } |
| 15 | 17 | |
| 16 | -require_once __DIR__ . '/php/uninstall.php'; | |
| 18 | +require_once __DIR__ . '/php/Core/Uninstaller.php'; | |
| 17 | 19 | |
| 18 | -uninstall_plugin(); | |
| 20 | +$uninstaller = new Uninstaller(); | |
| 21 | +$uninstaller->uninstall_plugin(); | |