Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
23
native/wordpress/maplepress-plugin/uninstall.php
Normal file
23
native/wordpress/maplepress-plugin/uninstall.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
/**
|
||||
* Fired when the plugin is uninstalled.
|
||||
*
|
||||
* @package MaplePress
|
||||
* @subpackage MaplePress/includes
|
||||
*/
|
||||
|
||||
// If uninstall not called from WordPress, then exit.
|
||||
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Delete all plugin options
|
||||
delete_option( 'maplepress_settings' );
|
||||
|
||||
// Delete any transients
|
||||
delete_transient( 'maplepress_activation_redirect' );
|
||||
delete_transient( 'maplepress_redirect_to_sync' );
|
||||
delete_transient( 'maplepress_pending_deletion' );
|
||||
|
||||
// Log the uninstall
|
||||
error_log( 'MaplePress: Plugin uninstalled and all data removed' );
|
||||
Loading…
Add table
Add a link
Reference in a new issue