PluginProbe
Paytium: Mollie payment forms & donations / trunk
Paytium: Mollie payment forms & donations vtrunk
5.0.4 5.0.5 1.0.3 1.0.4 1.1.0 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.5.0 1.5.1 2.0.5 2.0.6 2.1.0 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 3.0.11 3.0.12 3.0.13 3.0.7 3.0.8 All 72 releases
paytium / uninstall.php

uninstall.php in Paytium: Mollie payment forms & donations trunk, at uninstall.php

30 lines 799 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Fired when the plugin is uninstalled.
5 *
6 * @package PT
7 * @author David de Boer <david@davdeb.com>
8 */
9
10 // If uninstall, not called from WordPress, then exit.
11 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
12 exit;
13 }
14
15 $pt_general = get_option( 'pt_settings_default' );
16
17 if ( empty( $pt_general['uninstall_save_settings'] ) ) {
18 delete_option( 'pt_settings_master' );
19 delete_option( 'pt_settings_default' );
20 delete_option( 'pt_settings_keys' );
21 delete_option( 'pt_show_admin_notice_setup_wizard' );
22 delete_option( 'pt_show_admin_notice_newsletter' );
23 delete_option( 'pt_show_admin_notice_extensions' );
24 delete_option( 'pt_has_run' );
25 delete_option( 'pt_version' );
26 delete_option( 'pt_upgrade_has_run' );
27 delete_option( 'pt_settings_licenses' );
28 delete_option( 'pt_licenses' );
29 }
30