Plugin Directory

Changeset 1649520


Ignore:
Timestamp:
05/02/2017 10:01:03 AM (9 years ago)
Author:
inkthemes
Message:

added the calling and reg deactivation hook

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-sendgrid-smtp/trunk/wp-sendgrid-smtp.php

    r1600379 r1649520  
    33  Plugin Name: WP SendGrid SMTP
    44  Description: WP SendGrid SMTP allows you to send all outgoing emails via SendGrid SMTP server from your WordPress site.
    5   Version: 1.0.2
     5  Version: 1.0.3
    66  Author: InkThemes
    77  Author URI: https://www.inkthemes.com/
     
    5353        add_action( 'admin_init', array( $settings, 'settings' ) );
    5454        WPSendGrid_Mailer::Init( $settings->options );
     55        add_action('admin_notices', array( $settings,'wp_sendgridsmtp_tracking_admin_notice'));
     56        register_deactivation_hook(__FILE__,  array( $obj,'wp_sendgrid_smtp_delete_meta'));
    5557    }
    5658
     
    239241    }
    240242
     243    public function wp_sendgrid_smtp_delete_meta(){
     244         global $current_user;
     245         $user_id = $current_user->ID;
     246         delete_user_meta($user_id, 'wp_email_tracking_ignore_notice', 'true', true);
     247    }
    241248}
    242249
Note: See TracChangeset for help on using the changeset viewer.