WordPress Email Marketing Plugin – WP Email Capture - Version 3.1.2

Version Description

  • Reward linkers with a voucher code.
  • Included the "Last Known Update" box.
  • Tested up to 4.5
Download this release

Release Info

Developer rhyswynne
Plugin Icon 128x128 WordPress Email Marketing Plugin – WP Email Capture
Version 3.1.2
Comparing to
See all releases

Code changes from version 3.1.1 to 3.1.2

inc/admin-sidebar.php CHANGED
@@ -66,7 +66,7 @@ function wp_email_capture_admin_sidebar( $sidestring ) {
66
 
67
  if ( !$link ) {
68
 
69
- $link = "http://wpemailcapture.com/premium/?utm_source=plugin&utm_medium=banner&utm_term=2point5&utm_campaign=internalbanner";
70
 
71
  }
72
  echo '<h3 class="hndle"><span>'.__( 'Get WP Email Capture Premium', 'wp-email-capture' ).'</span></h3>
@@ -106,7 +106,7 @@ function wp_email_capture_admin_sidebar( $sidestring ) {
106
  foreach ( $wpemailcapturefeed as $item ) {
107
  $url = preg_replace( '/#.*/', '', esc_url( $item->get_permalink(), $protocolls=null, 'display' ) );
108
  echo '<li>
109
- <a href="'.$url.'#utm_source=wpadmin&utm_medium=sidebarwidget&utm_term=newsitem&utm_campaign=wpemailcapture">'. esc_html( $item->get_title() ) .'</a>
110
  </li>';
111
  }
112
  }
66
 
67
  if ( !$link ) {
68
 
69
+ $link = "https://www.wpemailcapture.com/premium/?utm_source=admin-sidebar&utm_medium=banner&utm_term=2point5&utm_campaign=internalbanner";
70
 
71
  }
72
  echo '<h3 class="hndle"><span>'.__( 'Get WP Email Capture Premium', 'wp-email-capture' ).'</span></h3>
106
  foreach ( $wpemailcapturefeed as $item ) {
107
  $url = preg_replace( '/#.*/', '', esc_url( $item->get_permalink(), $protocolls=null, 'display' ) );
108
  echo '<li>
109
+ <a href="'.$url.'?utm_source=admin-sidebar&utm_medium=sidebarwidget&utm_term=newsitem&utm_campaign=wpemailcapture">'. esc_html( $item->get_title() ) .'</a>
110
  </li>';
111
  }
112
  }
inc/css/wp-email-capture-admin-styles.css CHANGED
@@ -43,4 +43,12 @@
43
  color: #fff;
44
  background-color: #449d44;
45
  border-color: #398439;
 
 
 
 
 
 
 
 
46
  }
43
  color: #fff;
44
  background-color: #449d44;
45
  border-color: #398439;
46
+ }
47
+
48
+ .wp_email_capture_admin_discount {
49
+ display: none;
50
+ }
51
+
52
+ .wp_email_capture_admin_discount.wp_email_capture_admin_discount_active {
53
+ display: block;
54
  }
inc/dashboard.php CHANGED
@@ -10,8 +10,6 @@ function wp_email_capture_dashboard_widget() {
10
 
11
  wp_email_capture_writetable(3, "<strong>".__('Last Three Members To Join','wp-email-capture')."</strong><br/><br/>");
12
 
13
- $tempemails = wp_email_capture_count_temp();
14
-
15
  echo '<br/><br/><a name="list"></a><strong>'.__('Export','wp-email-capture').'</strong>';
16
  echo '<form name="wp_email_capture_export" action="'. esc_url($_SERVER['REQUEST_URI']) . '#list" method="post">';
17
  echo '<label>'.__('Use the button below to export your list as a CSV to use in software such as','wp-email-capture').' <a href="http://www.gospelrhys.co.uk/go/aweber.php" title="Email Marketing">Aweber</a>.</label>';
@@ -20,10 +18,18 @@ function wp_email_capture_dashboard_widget() {
20
  echo "</form><br/><br/>";
21
 
22
  $tempemails = wp_email_capture_count_temp();
 
 
 
 
 
 
 
 
23
 
24
  echo "<a name='truncate'></a><strong>".__('Temporary e-mails','wp-email-capture')."</strong>\n";
25
  echo '<form name="wp_email_capture_truncate" action="'. esc_url($_SERVER['REQUEST_URI']) . '#truncate" method="post">';
26
- echo '<label>'.__('There are','wp-email-capture').' '. $tempemails . ' '.__('e-mail addresses that have been unconfirmed. Delete them to save space below.','wp-email-capture').'</label>';
27
 
28
  echo '<input type="hidden" name="wp_email_capture_truncate"/>';
29
  echo '<div class="submit"><input type="submit" value="'.__('Delete Unconfirmed e-mail Addresses','wp-email-capture').'" class="button" /></div>';
10
 
11
  wp_email_capture_writetable(3, "<strong>".__('Last Three Members To Join','wp-email-capture')."</strong><br/><br/>");
12
 
 
 
13
  echo '<br/><br/><a name="list"></a><strong>'.__('Export','wp-email-capture').'</strong>';
14
  echo '<form name="wp_email_capture_export" action="'. esc_url($_SERVER['REQUEST_URI']) . '#list" method="post">';
15
  echo '<label>'.__('Use the button below to export your list as a CSV to use in software such as','wp-email-capture').' <a href="http://www.gospelrhys.co.uk/go/aweber.php" title="Email Marketing">Aweber</a>.</label>';
18
  echo "</form><br/><br/>";
19
 
20
  $tempemails = wp_email_capture_count_temp();
21
+ $lastsignupdatestring = wp_email_capture_get_last_singup_date();
22
+
23
+ if ( $lastsignupdatestring ) {
24
+ $lastsignupdate = date( "jS F, Y g:ia", strtotime( $lastsignupdatestring ) );
25
+ $lastsignupdatesentance = __( ' The last attempted signup was on ' . $lastsignupdate . '.', 'wp-email-capture' );
26
+ } else {
27
+ $lastsignupdatesentance = "";
28
+ }
29
 
30
  echo "<a name='truncate'></a><strong>".__('Temporary e-mails','wp-email-capture')."</strong>\n";
31
  echo '<form name="wp_email_capture_truncate" action="'. esc_url($_SERVER['REQUEST_URI']) . '#truncate" method="post">';
32
+ echo '<label>'.__('There are','wp-email-capture').' '. $tempemails . ' '.__('e-mail addresses that have been unconfirmed.' . $lastsignupdatesentance . ' Delete them to save space below.','wp-email-capture').'</label>';
33
 
34
  echo '<input type="hidden" name="wp_email_capture_truncate"/>';
35
  echo '<div class="submit"><input type="submit" value="'.__('Delete Unconfirmed e-mail Addresses','wp-email-capture').'" class="button" /></div>';
inc/functions.php CHANGED
@@ -89,7 +89,7 @@ function wp_email_capture_admin_notice() {
89
  function wp_email_capture_admin_upsell() {
90
  global $current_user;
91
  $user_id = $current_user->ID;
92
- $upgradeurl = "http://wpemailcapture.com/premium/?utm_source=upsell&utm_medium=plugin&utm_campaign=wpemailcapture";
93
  $discountcode = "BIGLISTUPGRADE";
94
  $discountamount = "15%";
95
  /* Check that the user hasn't already clicked to ignore the message */
@@ -141,7 +141,7 @@ function wp_email_capture_nag_ignore() {
141
  function wp_email_capture_fetch_rss_feed() {
142
 
143
  include_once ABSPATH . WPINC . '/feed.php';
144
- $rss = fetch_feed( "http://wpemailcapture.com/feed?cat=-4" );
145
 
146
  if ( is_wp_error( $rss ) ) { return false; }
147
 
@@ -168,4 +168,29 @@ function wp_email_capture_get_number_of_registered_users() {
168
 
169
  return $get_number_of_regs;
170
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
171
  }
89
  function wp_email_capture_admin_upsell() {
90
  global $current_user;
91
  $user_id = $current_user->ID;
92
+ $upgradeurl = "https://wpemailcapture.com/premium/?utm_source=upsell&utm_medium=plugin&utm_campaign=wpemailcapture";
93
  $discountcode = "BIGLISTUPGRADE";
94
  $discountamount = "15%";
95
  /* Check that the user hasn't already clicked to ignore the message */
141
  function wp_email_capture_fetch_rss_feed() {
142
 
143
  include_once ABSPATH . WPINC . '/feed.php';
144
+ $rss = fetch_feed( "https://www.wpemailcapture.com/feed?cat=-4" );
145
 
146
  if ( is_wp_error( $rss ) ) { return false; }
147
 
168
 
169
  return $get_number_of_regs;
170
 
171
+ }
172
+
173
+
174
+ /**
175
+ * Get the last date of temporary emails.
176
+ *
177
+ * @return mixed the last date of signup if known. False if not.
178
+ */
179
+ function wp_email_capture_get_last_singup_date() {
180
+
181
+ global $wpdb;
182
+ $get_last_date_sql = '
183
+ SELECT `date`
184
+ FROM ' . WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE . '
185
+ ORDER BY `date` DESC
186
+ LIMIT 1';
187
+
188
+ $get_last_date = $wpdb->get_var( $get_last_date_sql );
189
+
190
+ if ( $get_last_date != '0000-00-00 00:00:00') {
191
+ return $get_last_date;
192
+ } else {
193
+ return false;
194
+ }
195
+
196
  }
inc/install.php CHANGED
@@ -15,53 +15,64 @@ function wp_email_capture_install() {
15
 
16
  $registered_members_table = WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE;
17
 
18
- if ( $wpdb->get_var( "show tables like '$registered_members_table'" ) != $registered_members_table ) {
19
 
20
- $create_registered_members_table_sql = "
21
 
22
- CREATE TABLE " . $registered_members_table . " (
23
 
24
- id INT( 255 ) NOT NULL AUTO_INCREMENT ,
25
 
26
- name TINYTEXT NOT NULL ,
27
 
28
- email TEXT NOT NULL ,
29
 
30
- PRIMARY KEY (id)
31
 
32
- );";
33
 
34
- dbDelta( $create_registered_members_table_sql );
35
 
36
- }
37
 
38
- $temp_members_table_name = WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE;
39
 
40
- if ( $wpdb->get_var( "show tables like '$temp_members_table_name'" ) != $temp_members_table_name ) {
41
 
42
- $create_temp_members_table_sql = "
43
 
44
- CREATE TABLE " . $temp_members_table_name . " (
45
 
46
- id INT( 255 ) NOT NULL AUTO_INCREMENT ,
47
 
48
- name TINYTEXT NOT NULL ,
49
 
50
- email TEXT NOT NULL ,
51
 
52
- confirm_code TEXT NOT NULL,
53
 
54
- PRIMARY KEY (id)
55
 
56
- );";
57
 
58
- dbDelta( $create_temp_members_table_sql );
59
 
60
- }
 
 
 
 
 
 
 
 
 
 
 
61
 
62
- $from = get_option( 'admin_email' );
63
- add_option( 'wp_email_capture_link', 1 );
64
- add_option( 'wp_email_capture_from', $from );
65
- add_option( "wp_email_capture_db_version", $wp_email_capture_db_version );
 
66
 
67
- }
15
 
16
  $registered_members_table = WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE;
17
 
18
+ $create_registered_members_table_sql = "
19
 
20
+ CREATE TABLE " . $registered_members_table . " (
21
 
22
+ id INT( 255 ) NOT NULL AUTO_INCREMENT ,
23
 
24
+ name TINYTEXT NOT NULL ,
25
 
26
+ email TEXT NOT NULL ,
27
 
28
+ PRIMARY KEY (id)
29
 
30
+ );";
31
 
32
+ dbDelta( $create_registered_members_table_sql );
33
 
 
34
 
35
+ $temp_members_table_name = WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE;
36
 
37
+ $create_temp_members_table_sql = "
38
 
39
+ CREATE TABLE " . $temp_members_table_name . " (
40
 
41
+ id INT( 255 ) NOT NULL AUTO_INCREMENT ,
42
 
43
+ name TINYTEXT NOT NULL ,
44
 
45
+ email TEXT NOT NULL ,
46
 
47
+ confirm_code TEXT NOT NULL,
48
 
49
+ date DATETIME NOT NULL,
50
 
51
+ PRIMARY KEY (id)
52
 
53
+ );";
54
 
55
+ dbDelta( $create_temp_members_table_sql );
56
 
57
+ update_option( "wp_email_capture_db_version", $wp_email_capture_db_version );
58
 
59
+ $from = get_option( 'admin_email' );
60
+ add_option( 'wp_email_capture_from', $from );
61
+
62
+ }
63
+
64
+
65
+ /**
66
+ * Upgrade the database to the latest free one if needed.
67
+ *
68
+ * @return void
69
+ */
70
+ function wp_email_capture_database_upgdrade() {
71
 
72
+ global $wp_email_capture_db_version;
73
+
74
+ if ( get_site_option( 'wp_email_capture_db_version' ) != $wp_email_capture_db_version ) {
75
+ wp_email_capture_install();
76
+ }
77
 
78
+ }
inc/js/admin-custom.js CHANGED
@@ -1,15 +1,23 @@
1
  jQuery(document).ready(function () {
2
  jQuery('a.nav-tab').click(function () {
3
- jQuery('.wpemailcapture-tab').removeClass('active');
4
- jQuery('.wpemailcapture-tab').removeClass('active');
5
- var id = jQuery(this).attr('href');
6
- jQuery(id).addClass('active');
7
  });
8
 
9
  jQuery('a.non-nav-tab').click(function () {
10
- jQuery('.wpemailcapture-tab').removeClass('active');
11
- jQuery('.wpemailcapture-tab').removeClass('active');
12
- var id = jQuery(this).attr('href');
13
- jQuery(id).addClass('active');
 
 
 
 
 
 
 
 
14
  });
15
  });
1
  jQuery(document).ready(function () {
2
  jQuery('a.nav-tab').click(function () {
3
+ jQuery('.wpemailcapture-tab').removeClass('active');
4
+ jQuery('.wpemailcapture-tab').removeClass('active');
5
+ var id = jQuery(this).attr('href');
6
+ jQuery(id).addClass('active');
7
  });
8
 
9
  jQuery('a.non-nav-tab').click(function () {
10
+ jQuery('.wpemailcapture-tab').removeClass('active');
11
+ jQuery('.wpemailcapture-tab').removeClass('active');
12
+ var id = jQuery(this).attr('href');
13
+ jQuery(id).addClass('active');
14
+ });
15
+
16
+ jQuery('#wp_email_capture_link_checkbox').change(function() {
17
+ if(this.checked) {
18
+ jQuery('.wp_email_capture_admin_discount').show();
19
+ } else {
20
+ jQuery('.wp_email_capture_admin_discount').hide();
21
+ }
22
  });
23
  });
inc/options.php CHANGED
@@ -183,14 +183,25 @@ function wp_email_capture_free_options() {
183
 
184
  <th scope="row" style="width:400px"><label><?php _e( 'Link to us (optional, but appreciated)', 'wp-email-capture' ); ?></label></th>
185
 
186
- <td><input type="checkbox" name="wp_email_capture_link" value="1" <?php checked( get_option( 'wp_email_capture_link' ), 1 ); ?> /></td>
 
 
 
187
 
188
  </tr>
189
 
 
 
 
 
 
 
190
  <tr valign="top">
191
 
192
  <th scope="row" style="width:400px"><label><?php _e( 'Make The "Name" field a required field?', 'wp-email-capture' ); ?></label></th>
193
 
 
 
194
  <td><input type="checkbox" name="wp_email_capture_name_required" value="1" <?php checked( get_option( 'wp_email_capture_name_required' ), 1 ); ?> /></td>
195
 
196
  </tr>
@@ -236,13 +247,21 @@ function wp_email_capture_free_options() {
236
 
237
  </form>';
238
 
239
- $tempemails = wp_email_capture_count_temp();
 
 
 
 
 
 
 
 
240
 
241
  echo "<a name='truncate'></a><h3>".__( 'Temporary e-mails', 'wp-email-capture' )."</h3>\n";
242
 
243
  echo '<form name="wp_email_capture_truncate" action="'. esc_url( $_SERVER['REQUEST_URI'] ) . '#truncate" method="post">';
244
 
245
- echo '<label>'.__( 'There are', 'wp-email-capture' ).' '. $tempemails . ' '.__( 'e-mail addresses that have been unconfirmed. Delete them to save space below.', 'wp-email-capture' ).'</label>';
246
 
247
  echo '<input type="hidden" name="wp_email_capture_truncate"/>';
248
 
@@ -348,6 +367,6 @@ function wp_email_capture_premium_upsell() {
348
  <li><?php _e( '<strong>Custom Fields</strong> - You can capture more than just visitors name & email, add your own custom fields to capture (such as phone number or Address).', 'wp-email-capture' ); ?></li>
349
  </ul>
350
  <p><?php _e( 'You also get premium support for a whole year!', 'wp-email-capture' ); ?></p>
351
- <a href="http://wpemailcapture.com/premium/?utm_source=plugin-dashboard&utm_medium=plugin&utm_campaign=wpemailcapture" target="_blank"><button><?php _e( 'Click here to buy', 'wp-email-capture' ); ?></button></a>
352
  <?php
353
  } add_action( 'wp_email_capture_dashboard_premium_upsell', 'wp_email_capture_premium_upsell' );
183
 
184
  <th scope="row" style="width:400px"><label><?php _e( 'Link to us (optional, but appreciated)', 'wp-email-capture' ); ?></label></th>
185
 
186
+ <td>
187
+ <input type="checkbox" name="wp_email_capture_link" value="1" <?php checked( get_option( 'wp_email_capture_link' ), 1 ); ?> id="wp_email_capture_link_checkbox" />
188
+ <?php $prechecked = get_option( 'wp_email_capture_link' ) == 1 ? "wp_email_capture_admin_discount_active" : ""; ?>
189
+ </td>
190
 
191
  </tr>
192
 
193
+ <tr class="wp_email_capture_admin_discount <?php echo $prechecked; ?>">
194
+ <td colspan="2">
195
+ <?php printf( __( 'Thanks for linking to us! As a thank you, use code <strong>LINK20</strong> to get 20&#37; off <a href="%s">WP Email Capture Premium</a>, or any extension from the <a href="%s">WP Email Capture Shop</a>.', 'wp-email-capture' ), 'https://www.wpemailcapture.com/premium/?utm_source=plugin-dashboard&utm_medium=plugin&utm_term=checkedlink&utm_campaign=wpemailcapture', 'https://www.wpemailcapture.com/downloads/?utm_source=plugin-dashboard&utm_medium=plugin&utm_term=checkedlink&utm_campaign=wpemailcapture' ); ?>
196
+ </td>
197
+ </tr>
198
+
199
  <tr valign="top">
200
 
201
  <th scope="row" style="width:400px"><label><?php _e( 'Make The "Name" field a required field?', 'wp-email-capture' ); ?></label></th>
202
 
203
+
204
+
205
  <td><input type="checkbox" name="wp_email_capture_name_required" value="1" <?php checked( get_option( 'wp_email_capture_name_required' ), 1 ); ?> /></td>
206
 
207
  </tr>
247
 
248
  </form>';
249
 
250
+ $tempemails = wp_email_capture_count_temp();
251
+ $lastsignupdatestring = wp_email_capture_get_last_singup_date();
252
+
253
+ if ( $lastsignupdatestring ) {
254
+ $lastsignupdate = date( "jS F, Y g:ia", strtotime( $lastsignupdatestring ) );
255
+ $lastsignupdatesentance = __( ' The last attempted signup was on ' . $lastsignupdate . '.', 'wp-email-capture' );
256
+ } else {
257
+ $lastsignupdatesentance = "";
258
+ }
259
 
260
  echo "<a name='truncate'></a><h3>".__( 'Temporary e-mails', 'wp-email-capture' )."</h3>\n";
261
 
262
  echo '<form name="wp_email_capture_truncate" action="'. esc_url( $_SERVER['REQUEST_URI'] ) . '#truncate" method="post">';
263
 
264
+ echo '<label>'.__( 'There are', 'wp-email-capture' ).' '. $tempemails .__( ' e-mail addresses that have been unconfirmed.' . $lastsignupdatesentance . ' Delete them to save space below.', 'wp-email-capture' ).'</label>';
265
 
266
  echo '<input type="hidden" name="wp_email_capture_truncate"/>';
267
 
367
  <li><?php _e( '<strong>Custom Fields</strong> - You can capture more than just visitors name & email, add your own custom fields to capture (such as phone number or Address).', 'wp-email-capture' ); ?></li>
368
  </ul>
369
  <p><?php _e( 'You also get premium support for a whole year!', 'wp-email-capture' ); ?></p>
370
+ <a href="https://www.wpemailcapture.com/premium/?utm_source=plugin-dashboard&utm_medium=plugin&utm_campaign=wpemailcapture" target="_blank"><button><?php _e( 'Click here to buy', 'wp-email-capture' ); ?></button></a>
371
  <?php
372
  } add_action( 'wp_email_capture_dashboard_premium_upsell', 'wp_email_capture_premium_upsell' );
inc/process.php CHANGED
@@ -111,7 +111,7 @@ function wp_email_capture_signup() {
111
 
112
  }
113
 
114
- $member_data = array( 'confirm_code' => $confirm_code, 'name' => $name, 'email' => $email );
115
 
116
  /**
117
  * Filter whether we handle a new subscription.
@@ -131,7 +131,7 @@ function wp_email_capture_signup() {
131
  return;
132
 
133
  // Insert data into database
134
- $insert_into_temp=$wpdb->insert( WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE, $member_data, array( '%s', '%s', '%s' ) );
135
 
136
  // if suceesfully inserted data into database, send confirmation link to email
137
 
111
 
112
  }
113
 
114
+ $member_data = array( 'confirm_code' => $confirm_code, 'name' => $name, 'email' => $email, 'date' => $date );
115
 
116
  /**
117
  * Filter whether we handle a new subscription.
131
  return;
132
 
133
  // Insert data into database
134
+ $insert_into_temp=$wpdb->insert( WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE, $member_data, array( '%s', '%s', '%s', '%s' ) );
135
 
136
  // if suceesfully inserted data into database, send confirmation link to email
137
 
readme.md ADDED
@@ -0,0 +1,419 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ WP Email Capture
2
+ ================
3
+ Tags: email, marketing, capture, form, affiliates, mailing lists, email marketing, widget ready
4
+
5
+ Requires at least: 3.0
6
+
7
+ Tested up to: 4.5
8
+
9
+ Version: 3.1.2
10
+
11
+ Stable tag: 3.1.2
12
+
13
+ Contributors: rhyswynne
14
+
15
+ Donate link: https://www.wpemailcapture.com/premium/?utm_source=donatelink&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture
16
+
17
+ Double opt-in form for building your email list. Define landing pages to distribute your ebooks & software.
18
+
19
+ Description
20
+ ===========
21
+ This creates a 2 field form (Name & Email) for capturing emails. Email is double opt in, and allows you to forward opt in to services such as ebooks or software. When you are ready to begin your email marketing campaign, simply export the list into your chosen email marketing software or service.
22
+
23
+ Features:-
24
+
25
+ * Widget Ready.
26
+ * Uses Wordpress' internal wp_mail function for sending mail.
27
+ * Easily integrated with posts & pages.
28
+ * Dashboard Widget.
29
+ * Export data into CSV files, compatible with most major Email Marketing Programmes (including Aweber, Mailchimp, Groupmail, Constant Contact)
30
+ * Double opt in, so compatible with CAN-SPAM act.
31
+ * And completely free!
32
+
33
+ For more details please visit the official site of [WP Email Capture](https://www.wpemailcapture.com/?utm_source=description&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture)
34
+
35
+ **Now Released is WP Email Capture Premium!** You get all the above features plus the following:-
36
+
37
+ * Stat tracking - track the visitors to your site and where your sign ups come from.
38
+ * Autoresponders - Create an autoresponder email, an email sent to the user when they sign up to your site.
39
+ * Multiple lists - Create multiple lists for your site.
40
+ * Build External Lists - If you have a Mailchimp or Aweber account, you can use WP Email Capture to build to these services directly.
41
+ * Custom Fields - You can capture more than just visitors name & email, add your own custom fields to capture (such as phone number or Address).
42
+
43
+ You also get premium support and further documentation. For more information, and to purchase, [visit the plans and pricing page](https://www.wpemailcapture.com/premium/?utm_source=wpemailcapturepremium&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture).
44
+
45
+ Keep in Contact:-
46
+
47
+ * [WP Email Capture on Facebook](http://www.facebook.com/wpemailcapture)
48
+ * [@WPEmailCapture](http://www.twitter.com/wpemailcapture) on Twitter
49
+ * For support requests please visit the [FAQ's](https://www.wpemailcapture.com/free-plugin/frequently-asked-questions/?utm_source=contact&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture), or leave a message in the [Wordpress Support Forum](http://wordpress.org/support/plugin/wp-email-capture).
50
+ * For general feature requests or bug notices [please contact me directly](http://wpemailcapture.com/contact/?utm_source=contact&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture), however any support requests sent via the contact form, Facebook Page or Twitter Feed will be ignored - please use the WordPress Support Forum - please note I'm unable to support CSS or styling queries, please read the "Stylings" area on [other notes](http://wordpress.org/plugins/wp-email-capture/other_notes/?utm_source=contact&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture).
51
+
52
+ Translation Credits:-
53
+
54
+ Translations have been done by the following parties. Thank you!
55
+
56
+ * French Translation: Olivier - http://www.ticket-system.net/ & Andrew Patton (@andpatton) - http://www.acusti.ca/
57
+ * German Translation: Stephan - http://www.computersniffer.com/, Marc Nilius (@libertello) - http://www.libertello.de/ and Ov3rFly
58
+ * Brazilian Portugese Translation: Nick Lima (@nick_linux) - http://www.nicklima.com.br
59
+ * Dutch Translation: Sander - http://www.zanderz.net/
60
+ * Hungarian Translation: Surbma - http://surbma.hu/
61
+ * Spanish Translation: David Bravo - http://dimensionmultimedia.com
62
+ * Italian Translation: Giuseppe Marino - http://it.gravatar.com/gpmarino
63
+ * Serbian Translation: Borisa Djuraskovic - http://www.webhostinghub.com/
64
+ * Croatian Translation: Lem Treursić - http://grafika-dizajn.com/
65
+
66
+ Installation
67
+ ============
68
+ 1. Upload the plugin (unzipped) into `/wp-content/plugins/`.
69
+ 2. Activate the plugin under the "Plugins" menu.
70
+ 3. Create a page on your site for "sign up" (this page will be forwarded to when the form is just filled in, informs the users that they need to click on a link in the email.
71
+ 4. Create a page on your site "confirmation" (thanking them for their enquiry, links to download etc).
72
+ 5. After creating these, fill in the settings in the "Settings > WP Email Capture" page, making sure the URL of the "sign up" page is in the "Page to redirect to on sign up" text box and the "confirmation" page URL is in the "Page to redirect to on confirmation of email address" text box.
73
+
74
+ The form can be inserted into the site at any location. However, to put the form anywhere, insert the following code into your template
75
+
76
+ `<?php if (function_exists('wp_email_capture_form')) { wp_email_capture_form(); } ?>`
77
+
78
+ If you want to insert the form within a page, insert into any post or page the string `[wp_email_capture_form]`. It will be replaced with a simple form.
79
+
80
+ You can also add a widget to any widget enabled area by going to Appearance > Widgets in the WordPress Administration.
81
+
82
+ If you need more help, please read this guide on [how to set up WP Email Capture](http://wpemailcapture.com/2012/10/how-to-set-up-wp-email-capture-free/?utm_source=installation&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture)
83
+
84
+ Stylings
85
+ ========
86
+ To style your form, you need to add to your CSS file the following ID declarations. `wp_email_capture` is for sidebar & template widgets, `wp_email_capture_2` is for on page forms.
87
+
88
+ ```
89
+ #wp_email_capture
90
+ {
91
+
92
+ }
93
+ #wp_email_capture label.wp-email-capture-name
94
+ {
95
+
96
+ }
97
+ #wp_email_capture label.wp-email-capture-email
98
+ {
99
+
100
+ }
101
+ #wp_email_capture input.wp-email-capture-name
102
+ {
103
+
104
+ }
105
+ #wp_email_capture input.wp-email-capture-email
106
+ {
107
+
108
+ }
109
+ #wp_email_capture_2
110
+ {
111
+
112
+ }
113
+ #wp_email_capture_2 label.wp-email-capture-name
114
+ {
115
+
116
+ }
117
+ #wp_email_capture_2 label.wp-email-capture-email
118
+ {
119
+
120
+ }
121
+ #wp_email_capture_2 input.wp-email-capture-name
122
+ {
123
+
124
+ }
125
+ #wp_email_capture_2 input.wp-email-capture-email
126
+ {
127
+
128
+ }
129
+ ```
130
+
131
+ Screenshots
132
+ ===========
133
+ 1. The Dashboard Widget
134
+ 2. The Options Page
135
+ 3. It's appearance within the template
136
+
137
+ Frequently Asked Questions
138
+ ==========================
139
+ Can I see/export/autoconfirm "Unverified" Email Addresses?
140
+ ----------------------------------------------------------
141
+ No.
142
+
143
+ Why Not?
144
+ --------
145
+ In accordance with the CANSPAM act, I have hidden Unverified emails from view. They can not be seen. Sorry, but the temptation is too big to spam unverified emails. Hence the removal.
146
+
147
+ Can Registered Users access the "thank you" page after signup? They try signing up again and get a 'user has already been registered' error
148
+ -------------------------------------------------------------------------------------------------------------------------------------------
149
+ Yes they can, however they can't go through the registration process. If you are using [WP Email Capture Premium](http://wpemailcapture.com/premium/?utm_source=faq&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture), you can send an autoresponder after signing up (which can contain a link to the "thank you" page). Alternatively, add a notice on your landing page to encourage users to bookmark the page.
150
+
151
+ I am Upgrading to WP Email Capture 2.3+, why has my WP Email Capture Sidebar Widget disappeared?
152
+ ------------------------------------------------------------------------------------------------
153
+ The WP Email Capture version 2.3 saw the introduction of multiple sidebar widgets. This was coded differently to the pre 2.3 WP Email Capture sidebar widget. As such you will have to recreate the sidebar widget. It's easy to do, but apologies for this - I am working on a fix!
154
+
155
+ Often My Email Is Going Into Spam, how can I stop this?
156
+ -------------------------------------------------------
157
+ The most likely cause is by putting an email address that doesn't exist in the "From Which Email Address". Please don't put a noreply@, as spam eats this up. Also, make sure your email address is from your server (rather than a @gmail/@hotmail/@yahoo email address). Finally, try improving your deliverability rate by sending your emails through SMTP using [WP Mail SMTP](http://wordpress.org/plugins/wp-mail-smtp/).
158
+
159
+ Does this piece of software send out email?
160
+ -------------------------------------------
161
+ No. I feel that to do so would be counter productive, as sending out email could have a detrimental effect on your server. There are a number of services we recommend, such as Aweber, to send out lists built on WP Email Capture.
162
+
163
+ Does it work with Wordpress Multisite?
164
+ --------------------------------------
165
+ This plugin is unsupported for Wordpress Multisite. Some people have reported success in using it. Others haven't. I have been unable to figure out why (I've been unable to get it working for Wordpress Multisite).
166
+
167
+ For some reason, no emails are being sent. No errors either. What could be the issue?
168
+ -------------------------------------------------------------------------------------
169
+ This is sometimes the case if your hosting (usually Godaddy) disables certain ways of sending mail. If you use [WP Mail SMTP](http://wordpress.org/extend/plugins/wp-mail-smtp/), you can send emails in a different way that works.
170
+
171
+ Does it work with [theme_name]?
172
+ -------------------------------
173
+ This plugin does use widgets, so probably yes :)
174
+
175
+ How do I include the name in my emails I send to people?
176
+ --------------------------------------------------------
177
+ Wherever you put in %NAME% (spelt exactly like that, uppercase as well), it will be replaced with the name given by the user.
178
+
179
+ Bugs/Suggestions/Support
180
+ ========================
181
+ Please report any bugs, support and suggestions to the [WP Email Capture Support Page](http://www.wpemailcapture.com/support/?utm_source=support&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture)
182
+
183
+ Donate
184
+ ======
185
+ To donate to this plugin, please visit the [WP Email Capture Donations Page](http://wpemailcapture.com/premium/?utm_source=donate&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture)
186
+
187
+ Change Log
188
+ ==========
189
+ 3.1.2
190
+ -----
191
+ * Reward linkers with a voucher code.
192
+
193
+ 3.1.1
194
+ -----
195
+ * Removed a redundant file that, if hacked in, could lead to an injection of content. This file was *not* called normally but in order to remove it upgrade to this version. ** Update strongly required **
196
+ * Fixed a bug which saw a notice appear of a missing option on the upgrade and dashboard page.
197
+ * Removed a double header in Dashboard widget (props Ove3rfly).
198
+ * Correct textdomain used in some files (props Ov3rfly).
199
+ * Removed all PHP closing tags through the site (props Ov3rfly).
200
+
201
+ 3.1
202
+ ---
203
+ * Removed the default widget title should widget text be blank (props [Hassan Raza](http://hassan-raza.com/)).
204
+ * Changed word from "Update" to "Upgrade" for large lists as it was confusing people.
205
+ * Changed to new Text Domain as per WordPress' new internationalisation integration (wp-email-capture).
206
+
207
+ 3.0.2
208
+ -----
209
+ * Fixed an error with "Error: " displaying on the free version.
210
+
211
+ 3.0.1
212
+ -----
213
+ * Fixed a minor security issue in the display.php
214
+ * Removed Tracking (for now)
215
+
216
+ 3.0
217
+ ---
218
+ * Massive refactor of code, to help improve it.
219
+ * Fixed a bug that the "Hide Notice" dismissive now works.
220
+ * Updated French Translation (thanks [Andrew](http://www.acusti.ca/))
221
+ * Added Croatian Translation (thanks [Lem Treursić](http://grafika-dizajn.com/))
222
+ * Added Welcome Screen
223
+ * Added P tag around text widget introduction.
224
+ * Added better help documentation within the plugin.
225
+ * Added signup & confirm actions, to allow users to remove/add their own actions.
226
+ * Added a filter to the display form, so it can be changed.
227
+ * Add a filter for other subscription plugins (props [Dylan Kuhn](http://www.cyberhobo.net/))
228
+ * Changed menu structure
229
+ * Made compatible with WordPress 4.3, with new widget structure.
230
+ * Made compatible with new language packs.
231
+
232
+ 2.11
233
+ ----
234
+ * German Translation Updated (thanks Ove3rfly)
235
+ * Added the filter `wp_email_capture_dashboard_capability`, which means you can choose the capability you wish users to access the dashboard widget (thanks Ove3rfly).
236
+ * Added a few small fixes with the text (thanks Ove3rfly).
237
+
238
+ 2.10
239
+ ----
240
+ * Italian Translation Done (thanks [Guiseppe](http://it.gravatar.com/gpmarino)!)
241
+ * Serbian Translation Done (thanks [Borisa](http://www.webhostinghub.com/)!)
242
+
243
+ 2.9 (17/12/13)
244
+ --------------
245
+ * Fixed a small bug that produced warnings should security fields not be passed.
246
+ * Style buttons in a style for WordPress 3.8.
247
+ * Remove a rogue mysql_real_escape_string() call making it compatible with WordPress 3.9.
248
+ * Introduced stylings.
249
+
250
+ 2.8 (10/11/13)
251
+ --------------
252
+ * Introduced Spanish Translation (thanks David Bravo!)
253
+ * Added a feature whereby you can select the delimiter you wish to use.
254
+
255
+ 2.7.7 (08/07/13)
256
+ ----------------
257
+ * Fixed a few bug fixes that were spotted in Debug Mode (from forum member Ov3rfly).
258
+
259
+ 2.7.6 (12/06/13)
260
+ ----------------
261
+ * You can now translate error messages.
262
+
263
+ 2.7.5 (28/01/13)
264
+ ----------------
265
+ * Added an option "wp_email_capture_theme_affiliate_link", so theme designers can add this option on activation with their affiliate link to WP Email Capture.
266
+
267
+ 2.7.4 (14/01/13)
268
+ ----------------
269
+ * Added "title" attributes to the form fields, allowing WP Email Capture to play better with themes.
270
+
271
+ 2.7.3 (06/01/13)
272
+ ----------------
273
+ * Fixed the emails so that HTML characters (ampersands, speech marks, etc) in names/subjects/content are encoded properly.
274
+
275
+ 2.7.2 (11/12/12)
276
+ ----------------
277
+ * Compatible with WordPress 3.5. Critical upgrade if you're using WP 3.5
278
+ * Fixed an admin page error so if the news feed wasn't pulling from my site, then you will get an empty box, rather than an ugly error.
279
+
280
+ 2.7.1 (24/11/12)
281
+ ----------------
282
+ * Fixed a small bug that appears that error messages weren't appearing when sites had the defeault permalink structure.
283
+ * Fixed a redirection bug that users using the default URL structure were having, that caused a usability error.
284
+
285
+ 2.7 (20/11/12)
286
+ --------------
287
+ * Upgraded Hungarian Translation (thanks [Surbma](http://surbma.hu/)!)
288
+ * Rewritten areas of the readme file as it was confusing people (sorry!)
289
+
290
+ 2.6 (07/10/12)
291
+ --------------
292
+ * Added a checkbox that allows site owners to specify if "Name" is a required field.
293
+
294
+ 2.5.1 (12/08/12)
295
+ ----------------
296
+ * Recoded the RSS feed fetching code so it works on more servers and doesn't use a http based referrer.
297
+
298
+ 2.5 (01/08/12)
299
+ --------------
300
+ * A nag (which you can hide) should you not have the plugin set up correctly with a subscription or confirmation page.
301
+ * More CSS classes on each individual elements of the form.
302
+
303
+ 2.3.7 (23/07/12)
304
+ ----------------
305
+ * Improved wording of on page options, as well as documentation.
306
+
307
+ 2.3.6 (08/07/12)
308
+ ----------------
309
+ * Better error handling, if the settings for the plugin aren't filled in then the plugin doesn't fail.
310
+
311
+ 2.3.5 (01/06/12)
312
+ ----------------
313
+ * Added a "textwidget" class to the Widget Text Area so you can style it the same as all other text.
314
+ * More things you are able to translate, including buttons and more!
315
+ * Added Hungarian Translation.
316
+
317
+ 2.3.1 (22/5/12)
318
+ ---------------
319
+ * Bug fixes so notices shouldn't appear in debug mode.
320
+ * Added a for attribute to the form for accessibility.
321
+
322
+ 2.3 (09/5/12)
323
+ -------------
324
+ * Added support to multiple widgets.
325
+ * Added language support for the Dutch language.
326
+
327
+ 2.2 (17/4/12)
328
+ -------------
329
+ * The [Jemjabella](http://www.jemjabella.co.uk) update, after the individual who supplied most of the bug fixes, cheers!
330
+ * Added language support for Brazilian Portugese & German.
331
+
332
+ 2.1.1 (03/02/12)
333
+ ----------------
334
+ * Actually fixed the display bug talked about in 2.1
335
+ * Edited the Dashboard widget so that it's only displayed to user admins.
336
+
337
+ 2.1 (30/01/12)
338
+ --------------
339
+ * Internationalisation Completed - with French Language Pack
340
+ * Fixed a Small Display bug with the Plugin that occured in latest version of Wordpress.
341
+
342
+ 2.0.1 (28/10/10)
343
+ ----------------
344
+ * Fixed a small security bug which occurred in the previous version.
345
+
346
+ 2.0 (3/10/10)
347
+ -------------
348
+ * Switched functions to use the non depreciated functions
349
+ * Compatible with Spam Free
350
+ * Added a "Delete entire list" button in Wordpress.
351
+
352
+ 1.9 (20/01/10)
353
+ --------------
354
+ * Fixed a small bug that resulted in the display for [The plugin does not have a valid header.]
355
+ * Fixed a small phpmail bug
356
+
357
+ 1.8.1 (13/01/10)
358
+ ----------------
359
+ * Included more information in sent mail including IP, Date & Referral Page
360
+
361
+ 1.6 (18/10/09)
362
+ --------------
363
+ * You can now delete people from the confirmed members list (requested update!)
364
+
365
+ 1.5 (04/10/09)
366
+ --------------
367
+ * Fixed small error on the error checking form.
368
+
369
+ 1.4 (03/10/09)
370
+ --------------
371
+ * Added a check for duplicate emails.
372
+
373
+ 1.3 (30/09/09)
374
+ --------------
375
+ * Added a new feature where you can mention the name of the recipient of the email within the email by using the %NAME% string.
376
+ * Better default title & text for the WP Email Capture Widget.
377
+ * Fixed a bug that dropped the last character of the "From" name.
378
+
379
+ 1.2 (27/09/09)
380
+ --------------
381
+ * Fixed errors with the programme when using non pretty permalinks (they now work now)
382
+ * Compatible with windows based PHP configurations (1.1 introduced a function that didn't work on windows boxes).
383
+
384
+ 1.1 revision 2 (24/09/09)
385
+ -------------------------
386
+ * Fixed compatability issue with All in One SEO.
387
+ * Blogs which are on a subdomain now can use the plugin (http://www.domian.com/wordpress/)
388
+
389
+ 1.1 revision 1 (23/09/09)
390
+ -------------------------
391
+ * Fixed small upgrade bug
392
+
393
+ 1.1 (22/09/09)
394
+ --------------
395
+ * Fixed short tag problem in tempdata.php
396
+ * Emails that are not valid emails aren't processed
397
+
398
+ 1.0 RC 1 (17/09/09)
399
+ -------------------
400
+ * First Release!
401
+ * Dashboard Widget added.
402
+
403
+ 0.4 (14/09/09)
404
+ --------------
405
+ * Used more secure internal wp_mail class for sending out mail
406
+ * Implemented [wp_email_form] class for implementing plugin on form
407
+
408
+ 0.3 (12/09/09)
409
+ --------------
410
+ * Switch to headers, rather than meta refreshes for updating the page
411
+
412
+ 0.2 (09/09/09)
413
+ --------------
414
+ * Fixed small error in the plugin when using permalinks
415
+ * Implemented more security to the plugin
416
+
417
+ 0.1 (07/09/09)
418
+ --------------
419
+ * Plugin Launched
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === WP Email Capture ===
2
  Tags: email, marketing, capture, form, affiliates, mailing lists, email marketing, widget ready
3
  Requires at least: 3.0
4
- Tested up to: 4.4
5
- Version: 3.1.1
6
- Stable tag: 3.1.1
7
  Contributors: rhyswynne
8
- Donate link: http://wpemailcapture.com/premium/
9
 
10
  Double opt-in form for building your email list. Define landing pages to distribute your ebooks & software.
11
 
@@ -22,7 +22,7 @@ Features:-
22
  * Double opt in, so compatible with CAN-SPAM act.
23
  * And completely free!
24
 
25
- For more details please visit the official site of [WP Email Capture](http://wpemailcapture.com/?utm_source=description&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture)
26
 
27
  **Now Released is WP Email Capture Premium!** You get all the above features plus the following:-
28
 
@@ -32,13 +32,13 @@ For more details please visit the official site of [WP Email Capture](http://wpe
32
  * Build External Lists - If you have a Mailchimp or Aweber account, you can use WP Email Capture to build to these services directly.
33
  * Custom Fields - You can capture more than just visitors name & email, add your own custom fields to capture (such as phone number or Address).
34
 
35
- You also get premium support and further documentation. For more information, and to purchase, [visit the plans and pricing page](http://wpemailcapture.com/premium/?utm_source=wpemailcapturepremium&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture).
36
 
37
  Keep in Contact:-
38
 
39
  * [WP Email Capture on Facebook](http://www.facebook.com/wpemailcapture)
40
  * [@WPEmailCapture](http://www.twitter.com/wpemailcapture) on Twitter
41
- * For support requests please visit the [FAQ's](http://wpemailcapture.com/free-plugin/frequently-asked-questions/?utm_source=contact&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture), or leave a message in the [Wordpress Support Forum](http://wordpress.org/support/plugin/wp-email-capture).
42
  * For general feature requests or bug notices [please contact me directly](http://wpemailcapture.com/contact/?utm_source=contact&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture), however any support requests sent via the contact form, Facebook Page or Twitter Feed will be ignored - please use the WordPress Support Forum - please note I'm unable to support CSS or styling queries, please read the "Stylings" area on [other notes](http://wordpress.org/plugins/wp-email-capture/other_notes/?utm_source=contact&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture).
43
 
44
  Translation Credits:-
@@ -159,6 +159,11 @@ Please report any bugs, support and suggestions to the [WP Email Capture Support
159
  To donate to this plugin, please visit the [WP Email Capture Donations Page](http://wpemailcapture.com/premium/?utm_source=donate&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture)
160
 
161
  == Change Log ==
 
 
 
 
 
162
  = 3.1.1 =
163
  * Removed a redundant file that, if hacked in, could lead to an injection of content. This file was *not* called normally but in order to remove it upgrade to this version. ** Update strongly required **
164
  * Fixed a bug which saw a notice appear of a missing option on the upgrade and dashboard page.
1
  === WP Email Capture ===
2
  Tags: email, marketing, capture, form, affiliates, mailing lists, email marketing, widget ready
3
  Requires at least: 3.0
4
+ Tested up to: 4.5
5
+ Version: 3.1.2
6
+ Stable tag: 3.1.2
7
  Contributors: rhyswynne
8
+ Donate link: https://www.wpemailcapture.com/premium/?utm_source=donatelink&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture
9
 
10
  Double opt-in form for building your email list. Define landing pages to distribute your ebooks & software.
11
 
22
  * Double opt in, so compatible with CAN-SPAM act.
23
  * And completely free!
24
 
25
+ For more details please visit the official site of [WP Email Capture](https://www.wpemailcapture.com/?utm_source=description&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture)
26
 
27
  **Now Released is WP Email Capture Premium!** You get all the above features plus the following:-
28
 
32
  * Build External Lists - If you have a Mailchimp or Aweber account, you can use WP Email Capture to build to these services directly.
33
  * Custom Fields - You can capture more than just visitors name & email, add your own custom fields to capture (such as phone number or Address).
34
 
35
+ You also get premium support and further documentation. For more information, and to purchase, [visit the plans and pricing page](https://www.wpemailcapture.com/premium/?utm_source=wpemailcapturepremium&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture).
36
 
37
  Keep in Contact:-
38
 
39
  * [WP Email Capture on Facebook](http://www.facebook.com/wpemailcapture)
40
  * [@WPEmailCapture](http://www.twitter.com/wpemailcapture) on Twitter
41
+ * For support requests please visit the [FAQ's](https://www.wpemailcapture.com/free-plugin/frequently-asked-questions/?utm_source=contact&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture), or leave a message in the [Wordpress Support Forum](http://wordpress.org/support/plugin/wp-email-capture).
42
  * For general feature requests or bug notices [please contact me directly](http://wpemailcapture.com/contact/?utm_source=contact&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture), however any support requests sent via the contact form, Facebook Page or Twitter Feed will be ignored - please use the WordPress Support Forum - please note I'm unable to support CSS or styling queries, please read the "Stylings" area on [other notes](http://wordpress.org/plugins/wp-email-capture/other_notes/?utm_source=contact&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture).
43
 
44
  Translation Credits:-
159
  To donate to this plugin, please visit the [WP Email Capture Donations Page](http://wpemailcapture.com/premium/?utm_source=donate&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture)
160
 
161
  == Change Log ==
162
+ = 3.1.2 =
163
+ * Reward linkers with a voucher code.
164
+ * Included the "Last Known Update" box.
165
+ * Tested up to 4.5
166
+
167
  = 3.1.1 =
168
  * Removed a redundant file that, if hacked in, could lead to an injection of content. This file was *not* called normally but in order to remove it upgrade to this version. ** Update strongly required **
169
  * Fixed a bug which saw a notice appear of a missing option on the upgrade and dashboard page.
wp-email-capture.php CHANGED
@@ -4,15 +4,15 @@
4
 
5
  Plugin Name: WP Email Capture
6
 
7
- Plugin URI: http://wpemailcapture.com/?utm_source=plugin-link&utm_medium=plugin&utm_campaign=wpemailcapture
8
 
9
  Description: Captures email addresses for insertion into software such as <a href="http://wpemailcapture.com/recommends/aweber" title="Email Marketing">Aweber</a> or <a href="http://wpemailcapture.com/recommends/mailchimp/">Mailchimp</a>
10
 
11
- Version: 3.1.1
12
 
13
  Author: Winwar Media
14
 
15
- Author URI: http://winwar.co.uk/?utm_source=author-link&utm_medium=plugin&utm_campaign=wpemailcapture
16
 
17
  */
18
 
@@ -20,13 +20,13 @@ global $wp_email_capture_db_version;
20
  global $wpdb;
21
 
22
  // Definitions
23
- $wp_email_capture_db_version = "1.0";
24
 
25
  define( 'WP_EMAIL_CAPTURE_PATH', dirname( __FILE__ ) );
26
  define( 'WP_EMAIL_CAPTURE_URL', plugins_url( '', __FILE__ ) );
27
  define( 'WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_temp_members');
28
  define( 'WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_registered_members');
29
- define( 'WP_EMAIL_CAPTURE_VERSION', '3.1.1' );
30
 
31
  require_once WP_EMAIL_CAPTURE_PATH . '/inc/core.php';
32
 
@@ -69,6 +69,9 @@ function wp_email_capture_plugins_loaded() {
69
  add_action( 'admin_enqueue_scripts', 'wp_email_capture_admin_scripts' );
70
  add_shortcode( 'wp_email_capture_form', 'wp_email_capture_form_process_atts' );
71
  add_filter( 'wp_email_capture_send_email', 'wp_email_capture_send_email_default', 10, 4 );
 
 
 
72
  }
73
 
74
  // Activation functionality
4
 
5
  Plugin Name: WP Email Capture
6
 
7
+ Plugin URI: https://www.wpemailcapture.com/?utm_source=plugin-link&utm_medium=plugin&utm_campaign=wpemailcapture
8
 
9
  Description: Captures email addresses for insertion into software such as <a href="http://wpemailcapture.com/recommends/aweber" title="Email Marketing">Aweber</a> or <a href="http://wpemailcapture.com/recommends/mailchimp/">Mailchimp</a>
10
 
11
+ Version: 3.1.2
12
 
13
  Author: Winwar Media
14
 
15
+ Author URI: https://www.winwar.co.uk/?utm_source=author-link&utm_medium=plugin&utm_campaign=wpemailcapture
16
 
17
  */
18
 
20
  global $wpdb;
21
 
22
  // Definitions
23
+ $wp_email_capture_db_version = "1.2";
24
 
25
  define( 'WP_EMAIL_CAPTURE_PATH', dirname( __FILE__ ) );
26
  define( 'WP_EMAIL_CAPTURE_URL', plugins_url( '', __FILE__ ) );
27
  define( 'WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_temp_members');
28
  define( 'WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_registered_members');
29
+ define( 'WP_EMAIL_CAPTURE_VERSION', '3.1.2' );
30
 
31
  require_once WP_EMAIL_CAPTURE_PATH . '/inc/core.php';
32
 
69
  add_action( 'admin_enqueue_scripts', 'wp_email_capture_admin_scripts' );
70
  add_shortcode( 'wp_email_capture_form', 'wp_email_capture_form_process_atts' );
71
  add_filter( 'wp_email_capture_send_email', 'wp_email_capture_send_email_default', 10, 4 );
72
+
73
+ // Running this on the same hook so it can be removed if need be.
74
+ add_action( 'plugins_loaded', 'wp_email_capture_database_upgdrade', 50 );
75
  }
76
 
77
  // Activation functionality