wp-plugin-boilerplate/uninstall.php

16 lines
341 B
PHP

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