colorway_tracking_admin_notice

The ColorWay colorway tracking admin notice function.

Description

colorway_tracking_admin_notice(); 

Usage

  1. if ( !function_exists( 'colorway_tracking_admin_notice' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = colorway_tracking_admin_notice(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function colorway_tracking_admin_notice() { 
  2. global $current_user; 
  3. $user_id = $current_user->ID; 
  4. /** Check that the user hasn't already clicked to ignore the message */ 
  5. if (!get_user_meta($user_id, 'wp_email_tracking_ignore_notice')) { 
  6. ?> 
  7. <div class="updated um-admin-notice"><p><?php _e('Allow Colorway theme 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.', 'colorway'); ?></p><p><a href="<?php echo get_template_directory_uri() . '/functions/smtp.php?wp_email_tracking=email_smtp_allow_tracking'; ?>" class="button button-primary"><?php _e('Allow Sending', 'colorway'); ?></a> <a href="<?php echo get_template_directory_uri() . '/functions/smtp.php?wp_email_tracking=email_smtp_hide_tracking'; ?>" class="button-secondary"><?php _e('Do not allow', 'colorway'); ?></a></p></div> 
  8. <?php