WordPress.org

Plugin Directory

Changeset 1649548


Ignore:
Timestamp:
05/02/17 10:31:32 (7 months ago)
Author:
PankajAgarwal
Message:

added the function for calling the notice msg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-amazon-ses-smtp/trunk/includes/class-ses-settings.php

    r1504229 r1649548  
    233233        ); 
    234234    } 
     235     
     236         
     237    public function amgsessmtp_tracking_admin_notice() { 
     238        global $current_user; 
     239        $user_id = $current_user->ID; 
     240        /* Check that the user hasn't already clicked to ignore the message */ 
     241        if (!get_user_meta($user_id, 'wp_email_tracking_ignore_notice')) { 
     242            ?> 
     243            <div class="updated um-admin-notice"><p><?php _e('Allow WP Amazon SES SMTP Plugin to send you setup guide? Opt-in to our newsletter and we will immediately e-mail you a setup guide along with 20% discount which you can use to purchase any theme.', 'amgsessmtp'); ?></p><p><a href="<?php echo plugin_dir_url(__FILE__) . 'smtp.php?wp_email_tracking=email_smtp_allow_tracking'; ?>" class="button button-primary"><?php _e('Allow Sending', 'amgsessmtp'); ?></a>&nbsp;<a href="<?php echo plugin_dir_url(__FILE__) . 'smtp.php?wp_email_tracking=email_smtp_hide_tracking'; ?>" class="button-secondary"><?php _e('Do not allow', 'amgsessmtp'); ?></a></p></div> 
     244            <?php 
     245        } 
     246    } 
    235247 
    236248} 
Note: See TracChangeset for help on using the changeset viewer.