lubuntu.me/plugins/404page/uninstall.php

27 lines
565 B
PHP
Raw Normal View History

2016-11-28 21:52:15 -08:00
<?php
2018-01-26 15:50:15 +01:00
/**
* The 404page Plugin Uninstall
*/
2016-11-28 21:52:15 -08:00
2018-01-26 15:50:15 +01:00
// If this file is called directly, abort
if ( ! defined( 'WPINC' ) ) {
die;
}
// If this is somehow accessed withou plugin uninstall is requested, abort
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) || ! WP_UNINSTALL_PLUGIN || dirname( WP_UNINSTALL_PLUGIN ) != dirname( plugin_basename( __FILE__ ) ) ) {
die;
}
/**
* Load core plugin class and run uninstall
*/
require_once( plugin_dir_path( __FILE__ ) . '/inc/class-404page.php' );
$pp_404page = new PP_404Page( __FILE__ );
$pp_404page->uninstall();
2016-11-28 21:52:15 -08:00
?>