uninstall.php in Mark Posts 2.2.0, at uninstall.php
| 1 | <?php |
| 2 | /** |
| 3 | * Fired when the plugin is uninstalled. |
| 4 | * |
| 5 | * @author Michael Schoenrock <hello@michaelschoenrock.com> |
| 6 | * @license GPL-2.0+ |
| 7 | */ |
| 8 | |
| 9 | // If uninstall not called from WordPress, then exit |
| 10 | if (!defined('WP_UNINSTALL_PLUGIN')) { |
| 11 | exit; |
| 12 | } |
| 13 | |
| 14 | // unregister plugin settings |
| 15 | |
| 16 | function unregister_plugin() |
| 17 | { |
| 18 | register_taxonomy('marker', []); |
| 19 | } |
| 20 | |
| 21 | unregister_plugin(); |
| 22 |