PluginProbe ʕ •ᴥ•ʔ
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin / 1.3.1
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin v1.3.1
0.9.6 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.2 1.7.0 1.7.1 1.8.0 1.8.1 1.9.0 2.0.0 2.0.1 2.1.1 2.2.1 2.3.1 2.4.0 2.5.0 2.5.1 2.6.0 2.7.0 2.8.0 2.9.0 3.0.1 3.0.2 3.0.3 3.1.0 3.10.0 3.11.0 3.11.1 3.2.0 3.2.1 3.3.0 3.4.0 3.5.0 3.5.1 3.5.2 3.6.1 3.7.0 3.8.0 3.8.2 3.9.0 4.0.1 4.1.0 4.1.1 4.2.0 4.3.0 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.8.0 trunk 0.10.0 0.10.1 0.11.1 0.11.2 0.3.1 0.3.2 0.4 0.4.1 0.4.2 0.5.0 0.5.1 0.5.2 0.6 0.7 0.8 0.8.2 0.8.3 0.8.4 0.8.5 0.8.6 0.8.7 0.9.0 0.9.1 0.9.2 0.9.3 0.9.4 0.9.5
wp-mail-smtp / uninstall.php
wp-mail-smtp Last commit date
assets 7 years ago languages 7 years ago src 7 years ago vendor 7 years ago class-wpms-am-notification.php 7 years ago readme.txt 7 years ago uninstall.php 7 years ago wp-mail-smtp.php 7 years ago wp_mail_smtp.php 7 years ago
uninstall.php
59 lines
1 <?php
2 /**
3 * Uninstalls WP Mail SMTP.
4 *
5 * @since 1.3.0
6 */
7
8 // Exit if accessed directly.
9 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
10 exit;
11 }
12
13 // Confirm user has decided to remove all data, otherwise stop.
14 $settings = get_option( 'wp_mail_smtp', array() );
15 if ( empty( $settings['general']['uninstall'] ) ) {
16 return;
17 }
18
19 // Remove options.
20 $options = array(
21 'wp_mail_smtp_initial_version',
22 'wp_mail_smtp_version',
23 'wp_mail_smtp',
24 '_amn_smtp_last_checked',
25 // Legacy options.
26 'pepipost_ssl',
27 'pepipost_port',
28 'pepipost_pass',
29 'pepipost_user',
30 'smtp_pass',
31 'smtp_user',
32 'smtp_auth',
33 'smtp_ssl',
34 'smtp_port',
35 'smtp_host',
36 'mail_set_return_path',
37 'mailer',
38 'mail_from_name',
39 'mail_from',
40 'wp_mail_smtp_am_notifications_hidden',
41 );
42
43 foreach ( $options as $option ) {
44 delete_option( $option );
45 }
46
47 // Remove product annoucements.
48 $annoucements = get_posts( array(
49 'post_type' => array( 'amn_smtp' ),
50 'post_status' => 'any',
51 'numberposts' => -1,
52 'fields' => 'ids',
53 ) );
54 if ( ! empty( $annoucements ) ) {
55 foreach ( $annoucements as $annoucement ) {
56 wp_delete_post( $annoucement, true );
57 }
58 }
59