/**
 * If the user has over 500 emails, try to upsell.
 * 
 * @return void
 */
function wp_email_capture_admin_upsell()
{
    global $current_user;
    $user_id = $current_user->ID;
    $upgradeurl = "http://wpemailcapture.com/premium/?utm_source=upsell&utm_medium=plugin&utm_campaign=wpemailcapture";
    $discountcode = "BIGLISTUPGRADE";
    $discountamount = "15%";
    /* Check that the user hasn't already clicked to ignore the message */
    if (!get_user_meta($user_id, 'wp_email_capture_upsell_ignore')) {
        if (500 < wp_email_capture_get_number_of_registered_users()) {
            echo '<div class="updated welcome-panel" style="padding: 23px 10px 0;">';
            printf(__('<a href="%1$s" class="welcome-panel-close">Hide Notice</a>
				<div class="welcome-panel-content">
				<h3>WP Email Capture - Over 500 Emails</h3>
				<p>WP Email Capture has over 500 entries. Whilst the plugin is free for use forever, it does struggle a bit with very large lists.</p>
				<p>WP Email Caputre Premium is better suited to large lists, so please consider upgrading. As a thank you for using us for so long, use discount code <strong>%3$s</strong> for <strong>%4$s</strong> off.</p>
				<p><a href="%2$s" class="button button-primary button-hero"><strong>Update WP Email Capture</strong></a></p></div>'), '?wp_email_capture_upsell_ignore=0', $upgradeurl, $discountcode, $discountamount);
            echo "</div>";
        }
    }
}
 function tracking_additions($options)
 {
     if (function_exists('curl_version')) {
         $curl = curl_version();
     } else {
         $curl = null;
     }
     $options['wpemailcapture'] = array('listsize' => wp_email_capture_get_number_of_registered_users(), 'tempsize' => wp_email_capture_count_temp(), 'linktous' => get_option('wp_email_capture_link'));
     return $options;
 }