Skip to content

Commit

Permalink
Merge pull request #92 from a8cteam51/add-mailster
Browse files Browse the repository at this point in the history
Add mailster and others to plugin denylist
  • Loading branch information
NickGreen authored May 3, 2023
2 parents c48a411 + 4dbb1e8 commit fcc155e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 2 additions & 0 deletions assets/data/option_scrublist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ jetpack_secrets
klaviyo_api_key
klaviyo_edd_license_key
klaviyo_settings
leadin_access_token
mailchimp-woocommerce
mailchimp-woocommerce-cached-api-account-name
mailster_options
mc4wp
shareasale_wc_tracker_options
woocommerce_afterpay_settings
Expand Down
13 changes: 9 additions & 4 deletions assets/data/plugin_denylist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,30 @@ afterpay
algolia
automator
avatax
hubspot
in-stock-mailer-for-wc
klaviyo
leadin
mailchimp
mailgun
mailpoet
mailster
metorik
paypal
postmark
postmatic
referralcandy
sendgrid
sendinblue
shareasale
shipstation
smtp
socketlabs
sparkpost
stripe
webgility
wp-console
wp-mail-bank
wp-sendgrid-mailer
console
mail-bank
wp-ses
wpmandrill
zapier
zapier
6 changes: 6 additions & 0 deletions includes/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ function delete_users_and_orders() {
$wpdb->query( "DELETE FROM {$wpdb->prefix}actionscheduler_actions WHERE hook IN ( 'woocommerce_scheduled_subscription_payment', 'woocommerce_scheduled_subscription_payment_retry', 'woocommerce_scheduled_subscription_end_of_prepaid_term' )" );
}

// Delete WP Mail Logging logs
$table_name = $wpdb->prefix . 'wpml_mails'; // check if table exists before purging
if ( $wpdb->get_var( "SHOW TABLES LIKE '$table_name'") == $table_name ) {
$wpdb->query( "DELETE FROM {$wpdb->prefix}wpml_mails" );
}

// Reassigning all posts to the first admin user
reassign_all_posts();

Expand Down
2 changes: 1 addition & 1 deletion safety-net.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* Plugin Name: Safety Net
* Description: For Team51 Development Sites. Deletes user data and more!
* Version: 1.4.5
* Version: 1.4.6
* Author: WordPress.com Special Projects
* Author URI: https://wpspecialprojects.wordpress.com
* Text Domain: safety-net
Expand Down

0 comments on commit fcc155e

Please sign in to comment.