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