wp-plugin-boilerplate/uninstall.php

12 lines
255 B
PHP

<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit; // Exit if this isn't an uninstall action...maybe?
}
// Put logic here to undo things when this plugin is uninstalled.