wp-plugin-boilerplate/uninstall.php

13 lines
242 B
PHP

<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// This constant gets set when WordPress' uninstall.php file is invoked.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
// Put logic here to undo things when this plugin is uninstalled.