Paid Memberships Pro - Version 1.8.4.1

Version Description

  • BUG: Fixed issue introduced in 1.8.4 where levels wouldn't show up in the front end if they hadn't been reordered.
Download this release

Release Info

Developer strangerstudios
Plugin Icon 128x128 Paid Memberships Pro
Version 1.8.4.1
Comparing to
See all releases

Code changes from version 1.8.4 to 1.8.4.1

Files changed (3) hide show
  1. adminpages/pagesettings.php +1 -4
  2. paid-memberships-pro.php +198 -198
  3. readme.txt +1076 -1073
adminpages/pagesettings.php CHANGED
@@ -140,9 +140,6 @@
140
  <label for="account_page_id"><?php _e('Account Page', 'pmpro');?>:</label>
141
  </th>
142
  <td>
143
- <?php
144
- wp_dropdown_pages(array("name"=>"account_page_id", "show_option_none"=>"-- ".__( 'Choose One', 'pmpro' )." --", "selected"=>$pmpro_pages['account']));
145
- ?>
146
  <?php
147
  wp_dropdown_pages(array("name"=>"account_page_id", "show_option_none"=>"-- ".__( 'Choose One', 'pmpro' )." --", "selected"=>$pmpro_pages['account']));
148
  ?>
@@ -257,4 +254,4 @@
257
 
258
  <?php
259
  require_once(dirname(__FILE__) . "/admin_footer.php");
260
- ?>
140
  <label for="account_page_id"><?php _e('Account Page', 'pmpro');?>:</label>
141
  </th>
142
  <td>
 
 
 
143
  <?php
144
  wp_dropdown_pages(array("name"=>"account_page_id", "show_option_none"=>"-- ".__( 'Choose One', 'pmpro' )." --", "selected"=>$pmpro_pages['account']));
145
  ?>
254
 
255
  <?php
256
  require_once(dirname(__FILE__) . "/admin_footer.php");
257
+ ?>
paid-memberships-pro.php CHANGED
@@ -1,198 +1,198 @@
1
- <?php
2
- /*
3
- Plugin Name: Paid Memberships Pro
4
- Plugin URI: http://www.paidmembershipspro.com
5
- Description: Plugin to Handle Memberships
6
- Version: 1.8.4
7
- Author: Stranger Studios
8
- Author URI: http://www.strangerstudios.com
9
- */
10
- /*
11
- Copyright 2011 Stranger Studios (email : jason@strangerstudios.com)
12
- GPLv2 Full license details in license.txt
13
- */
14
-
15
- //version constant
16
- define("PMPRO_VERSION", "1.8.4");
17
-
18
- //if the session has been started yet, start it (ignore if running from command line)
19
- if(defined('STDIN') )
20
- {
21
- //command line
22
- }
23
- else
24
- {
25
- if (version_compare(phpversion(), '5.4.0', '>=')) {
26
- if (session_status() == PHP_SESSION_NONE)
27
- session_start();
28
- }
29
- else {
30
- if(!session_id())
31
- session_start();
32
- }
33
-
34
- }
35
-
36
- /*
37
- Includes
38
- */
39
- define("PMPRO_DIR", dirname(__FILE__));
40
- require_once(PMPRO_DIR . "/includes/localization.php"); //localization functions
41
- require_once(PMPRO_DIR . "/includes/lib/name-parser.php"); //parses "Jason Coleman" into firstname=>Jason, lastname=>Coleman
42
- require_once(PMPRO_DIR . "/includes/functions.php"); //misc functions used by the plugin
43
- require_once(PMPRO_DIR . "/includes/upgradecheck.php"); //database and other updates
44
-
45
- require_once(PMPRO_DIR . "/scheduled/crons.php"); //crons for expiring members, sending expiration emails, etc
46
-
47
- require_once(PMPRO_DIR . "/classes/class.memberorder.php"); //class to process and save orders
48
- require_once(PMPRO_DIR . "/classes/class.pmproemail.php"); //setup and filter emails sent by PMPro
49
-
50
- require_once(PMPRO_DIR . "/includes/filters.php"); //filters, hacks, etc, moved into the plugin
51
- require_once(PMPRO_DIR . "/includes/reports.php"); //load reports for admin (reports may also include tracking code, etc)
52
- require_once(PMPRO_DIR . "/includes/adminpages.php"); //dashboard pages
53
- require_once(PMPRO_DIR . "/includes/services.php"); //services loaded by AJAX and via webhook, etc
54
- require_once(PMPRO_DIR . "/includes/metaboxes.php"); //metaboxes for dashboard
55
- require_once(PMPRO_DIR . "/includes/profile.php"); //edit user/profile fields
56
- require_once(PMPRO_DIR . "/includes/https.php"); //code related to HTTPS/SSL
57
- require_once(PMPRO_DIR . "/includes/notifications.php"); //check for notifications at PMPro, shown in PMPro settings
58
- require_once(PMPRO_DIR . "/includes/init.php"); //code run during init, set_current_user, and wp hooks
59
- require_once(PMPRO_DIR . "/includes/content.php"); //code to check for memebrship and protect content
60
- require_once(PMPRO_DIR . "/includes/email.php"); //code related to email
61
- require_once(PMPRO_DIR . "/includes/recaptcha.php"); //load recaptcha files if needed
62
- require_once(PMPRO_DIR . "/includes/cleanup.php"); //clean things up when deletes happen, etc.
63
- require_once(PMPRO_DIR . "/includes/login.php"); //code to redirect away from login/register page
64
-
65
- require_once(PMPRO_DIR . "/includes/xmlrpc.php"); //xmlrpc methods
66
-
67
- require_once(PMPRO_DIR . "/shortcodes/checkout_button.php"); //[checkout_button] shortcode to show link to checkout for a level
68
- require_once(PMPRO_DIR . "/shortcodes/membership.php"); //[membership] shortcode to hide/show member content
69
- require_once(PMPRO_DIR . "/shortcodes/pmpro_account.php"); //[pmpro_account] shortcode to show account information
70
-
71
- //load gateway
72
- require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway.php"); //loaded by memberorder class when needed
73
-
74
- //load payment gateway class
75
- require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_authorizenet.php");
76
- require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_braintree.php");
77
- require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_check.php");
78
- require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_cybersource.php");
79
- require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_payflowpro.php");
80
- require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_paypal.php");
81
- require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_paypalexpress.php");
82
- require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_paypalstandard.php");
83
- require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_stripe.php");
84
- require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_twocheckout.php");
85
-
86
- /*
87
- Setup the DB and check for upgrades
88
- */
89
- global $wpdb;
90
-
91
- //check if the DB needs to be upgraded
92
- if(is_admin())
93
- pmpro_checkForUpgrades();
94
-
95
- /*
96
- Definitions
97
- */
98
- define("SITENAME", str_replace("&#039;", "'", get_bloginfo("name")));
99
- $urlparts = explode("//", home_url());
100
- define("SITEURL", $urlparts[1]);
101
- define("SECUREURL", str_replace("http://", "https://", get_bloginfo("wpurl")));
102
- define("PMPRO_URL", WP_PLUGIN_URL . "/paid-memberships-pro");
103
- define("PMPRO_DOMAIN", pmpro_getDomainFromURL(site_url()));
104
- define("PAYPAL_BN_CODE", "PaidMembershipsPro_SP");
105
-
106
- /*
107
- Globals
108
- */
109
- global $gateway_environment;
110
- $gateway_environment = pmpro_getOption("gateway_environment");
111
-
112
-
113
- // Returns a list of all available gateway
114
- function pmpro_gateways(){
115
- $pmpro_gateways = array(
116
- '' => __('Testing Only', 'pmpro'),
117
- 'check' => __('Pay by Check', 'pmpro'),
118
- 'stripe' => __('Stripe', 'pmpro'),
119
- 'paypalexpress' => __('PayPal Express', 'pmpro'),
120
- 'paypal' => __('PayPal Website Payments Pro', 'pmpro'),
121
- 'payflowpro' => __('PayPal Payflow Pro/PayPal Pro', 'pmpro'),
122
- 'paypalstandard' => __('PayPal Standard', 'pmpro'),
123
- 'authorizenet' => __('Authorize.net', 'pmpro'),
124
- 'braintree' => __('Braintree Payments', 'pmpro'),
125
- 'twocheckout' => __('2Checkout', 'pmpro'),
126
- 'cybersource' => __('Cybersource', 'pmpro')
127
- );
128
-
129
- return apply_filters( 'pmpro_gateways', $pmpro_gateways );
130
- }
131
-
132
-
133
- //when checking levels for users, we save the info here for caching. each key is a user id for level object for that user.
134
- global $all_membership_levels;
135
-
136
- //we sometimes refer to this array of levels
137
- global $membership_levels;
138
- $membership_levels = $wpdb->get_results( "SELECT * FROM {$wpdb->pmpro_membership_levels}", OBJECT );
139
-
140
- /*
141
- Activation/Deactivation
142
- */
143
- function pmpro_activation()
144
- {
145
- //schedule crons
146
- wp_schedule_event(current_time('timestamp'), 'daily', 'pmpro_cron_expiration_warnings');
147
- //wp_schedule_event(current_time('timestamp')(), 'daily', 'pmpro_cron_trial_ending_warnings'); //this warning has been deprecated since 1.7.2
148
- wp_schedule_event(current_time('timestamp'), 'daily', 'pmpro_cron_expire_memberships');
149
- wp_schedule_event(current_time('timestamp'), 'monthly', 'pmpro_cron_credit_card_expiring_warnings');
150
-
151
- //add caps to admin role
152
- $role = get_role( 'administrator' );
153
- $role->add_cap( 'pmpro_memberships_menu' );
154
- $role->add_cap( 'pmpro_membershiplevels' );
155
- $role->add_cap( 'pmpro_edit_memberships' );
156
- $role->add_cap( 'pmpro_pagesettings' );
157
- $role->add_cap( 'pmpro_paymentsettings' );
158
- $role->add_cap( 'pmpro_emailsettings' );
159
- $role->add_cap( 'pmpro_advancedsettings' );
160
- $role->add_cap( 'pmpro_addons' );
161
- $role->add_cap( 'pmpro_memberslist' );
162
- $role->add_cap( 'pmpro_memberslistcsv' );
163
- $role->add_cap( 'pmpro_reports' );
164
- $role->add_cap( 'pmpro_orders' );
165
- $role->add_cap( 'pmpro_orderscsv' );
166
- $role->add_cap( 'pmpro_discountcodes' );
167
-
168
- do_action('pmpro_activation');
169
- }
170
- function pmpro_deactivation()
171
- {
172
- //remove crons
173
- wp_clear_scheduled_hook('pmpro_cron_expiration_warnings');
174
- wp_clear_scheduled_hook('pmpro_cron_trial_ending_warnings');
175
- wp_clear_scheduled_hook('pmpro_cron_expire_memberships');
176
- wp_clear_scheduled_hook('pmpro_cron_credit_card_expiring_warnings');
177
-
178
- //remove caps from admin role
179
- $role = get_role( 'administrator' );
180
- $role->remove_cap( 'pmpro_memberships_menu' );
181
- $role->remove_cap( 'pmpro_membershiplevels' );
182
- $role->remove_cap( 'pmpro_edit_memberships' );
183
- $role->remove_cap( 'pmpro_pagesettings' );
184
- $role->remove_cap( 'pmpro_paymentsettings' );
185
- $role->remove_cap( 'pmpro_emailsettings' );
186
- $role->remove_cap( 'pmpro_advancedsettings' );
187
- $role->remove_cap( 'pmpro_addons' );
188
- $role->remove_cap( 'pmpro_memberslist' );
189
- $role->remove_cap( 'pmpro_memberslistcsv' );
190
- $role->remove_cap( 'pmpro_reports' );
191
- $role->remove_cap( 'pmpro_orders' );
192
- $role->remove_cap( 'pmpro_orderscsv' );
193
- $role->remove_cap( 'pmpro_discountcodes' );
194
-
195
- do_action('pmpro_deactivation');
196
- }
197
- register_activation_hook(__FILE__, 'pmpro_activation');
198
- register_deactivation_hook(__FILE__, 'pmpro_deactivation');
1
+ <?php
2
+ /*
3
+ Plugin Name: Paid Memberships Pro
4
+ Plugin URI: http://www.paidmembershipspro.com
5
+ Description: Plugin to Handle Memberships
6
+ Version: 1.8.4.1
7
+ Author: Stranger Studios
8
+ Author URI: http://www.strangerstudios.com
9
+ */
10
+ /*
11
+ Copyright 2011 Stranger Studios (email : jason@strangerstudios.com)
12
+ GPLv2 Full license details in license.txt
13
+ */
14
+
15
+ //version constant
16
+ define("PMPRO_VERSION", "1.8.4.1");
17
+
18
+ //if the session has been started yet, start it (ignore if running from command line)
19
+ if(defined('STDIN') )
20
+ {
21
+ //command line
22
+ }
23
+ else
24
+ {
25
+ if (version_compare(phpversion(), '5.4.0', '>=')) {
26
+ if (session_status() == PHP_SESSION_NONE)
27
+ session_start();
28
+ }
29
+ else {
30
+ if(!session_id())
31
+ session_start();
32
+ }
33
+
34
+ }
35
+
36
+ /*
37
+ Includes
38
+ */
39
+ define("PMPRO_DIR", dirname(__FILE__));
40
+ require_once(PMPRO_DIR . "/includes/localization.php"); //localization functions
41
+ require_once(PMPRO_DIR . "/includes/lib/name-parser.php"); //parses "Jason Coleman" into firstname=>Jason, lastname=>Coleman
42
+ require_once(PMPRO_DIR . "/includes/functions.php"); //misc functions used by the plugin
43
+ require_once(PMPRO_DIR . "/includes/upgradecheck.php"); //database and other updates
44
+
45
+ require_once(PMPRO_DIR . "/scheduled/crons.php"); //crons for expiring members, sending expiration emails, etc
46
+
47
+ require_once(PMPRO_DIR . "/classes/class.memberorder.php"); //class to process and save orders
48
+ require_once(PMPRO_DIR . "/classes/class.pmproemail.php"); //setup and filter emails sent by PMPro
49
+
50
+ require_once(PMPRO_DIR . "/includes/filters.php"); //filters, hacks, etc, moved into the plugin
51
+ require_once(PMPRO_DIR . "/includes/reports.php"); //load reports for admin (reports may also include tracking code, etc)
52
+ require_once(PMPRO_DIR . "/includes/adminpages.php"); //dashboard pages
53
+ require_once(PMPRO_DIR . "/includes/services.php"); //services loaded by AJAX and via webhook, etc
54
+ require_once(PMPRO_DIR . "/includes/metaboxes.php"); //metaboxes for dashboard
55
+ require_once(PMPRO_DIR . "/includes/profile.php"); //edit user/profile fields
56
+ require_once(PMPRO_DIR . "/includes/https.php"); //code related to HTTPS/SSL
57
+ require_once(PMPRO_DIR . "/includes/notifications.php"); //check for notifications at PMPro, shown in PMPro settings
58
+ require_once(PMPRO_DIR . "/includes/init.php"); //code run during init, set_current_user, and wp hooks
59
+ require_once(PMPRO_DIR . "/includes/content.php"); //code to check for memebrship and protect content
60
+ require_once(PMPRO_DIR . "/includes/email.php"); //code related to email
61
+ require_once(PMPRO_DIR . "/includes/recaptcha.php"); //load recaptcha files if needed
62
+ require_once(PMPRO_DIR . "/includes/cleanup.php"); //clean things up when deletes happen, etc.
63
+ require_once(PMPRO_DIR . "/includes/login.php"); //code to redirect away from login/register page
64
+
65
+ require_once(PMPRO_DIR . "/includes/xmlrpc.php"); //xmlrpc methods
66
+
67
+ require_once(PMPRO_DIR . "/shortcodes/checkout_button.php"); //[checkout_button] shortcode to show link to checkout for a level
68
+ require_once(PMPRO_DIR . "/shortcodes/membership.php"); //[membership] shortcode to hide/show member content
69
+ require_once(PMPRO_DIR . "/shortcodes/pmpro_account.php"); //[pmpro_account] shortcode to show account information
70
+
71
+ //load gateway
72
+ require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway.php"); //loaded by memberorder class when needed
73
+
74
+ //load payment gateway class
75
+ require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_authorizenet.php");
76
+ require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_braintree.php");
77
+ require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_check.php");
78
+ require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_cybersource.php");
79
+ require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_payflowpro.php");
80
+ require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_paypal.php");
81
+ require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_paypalexpress.php");
82
+ require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_paypalstandard.php");
83
+ require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_stripe.php");
84
+ require_once(PMPRO_DIR . "/classes/gateways/class.pmprogateway_twocheckout.php");
85
+
86
+ /*
87
+ Setup the DB and check for upgrades
88
+ */
89
+ global $wpdb;
90
+
91
+ //check if the DB needs to be upgraded
92
+ if(is_admin())
93
+ pmpro_checkForUpgrades();
94
+
95
+ /*
96
+ Definitions
97
+ */
98
+ define("SITENAME", str_replace("&#039;", "'", get_bloginfo("name")));
99
+ $urlparts = explode("//", home_url());
100
+ define("SITEURL", $urlparts[1]);
101
+ define("SECUREURL", str_replace("http://", "https://", get_bloginfo("wpurl")));
102
+ define("PMPRO_URL", WP_PLUGIN_URL . "/paid-memberships-pro");
103
+ define("PMPRO_DOMAIN", pmpro_getDomainFromURL(site_url()));
104
+ define("PAYPAL_BN_CODE", "PaidMembershipsPro_SP");
105
+
106
+ /*
107
+ Globals
108
+ */
109
+ global $gateway_environment;
110
+ $gateway_environment = pmpro_getOption("gateway_environment");
111
+
112
+
113
+ // Returns a list of all available gateway
114
+ function pmpro_gateways(){
115
+ $pmpro_gateways = array(
116
+ '' => __('Testing Only', 'pmpro'),
117
+ 'check' => __('Pay by Check', 'pmpro'),
118
+ 'stripe' => __('Stripe', 'pmpro'),
119
+ 'paypalexpress' => __('PayPal Express', 'pmpro'),
120
+ 'paypal' => __('PayPal Website Payments Pro', 'pmpro'),
121
+ 'payflowpro' => __('PayPal Payflow Pro/PayPal Pro', 'pmpro'),
122
+ 'paypalstandard' => __('PayPal Standard', 'pmpro'),
123
+ 'authorizenet' => __('Authorize.net', 'pmpro'),
124
+ 'braintree' => __('Braintree Payments', 'pmpro'),
125
+ 'twocheckout' => __('2Checkout', 'pmpro'),
126
+ 'cybersource' => __('Cybersource', 'pmpro')
127
+ );
128
+
129
+ return apply_filters( 'pmpro_gateways', $pmpro_gateways );
130
+ }
131
+
132
+
133
+ //when checking levels for users, we save the info here for caching. each key is a user id for level object for that user.
134
+ global $all_membership_levels;
135
+
136
+ //we sometimes refer to this array of levels
137
+ global $membership_levels;
138
+ $membership_levels = $wpdb->get_results( "SELECT * FROM {$wpdb->pmpro_membership_levels}", OBJECT );
139
+
140
+ /*
141
+ Activation/Deactivation
142
+ */
143
+ function pmpro_activation()
144
+ {
145
+ //schedule crons
146
+ wp_schedule_event(current_time('timestamp'), 'daily', 'pmpro_cron_expiration_warnings');
147
+ //wp_schedule_event(current_time('timestamp')(), 'daily', 'pmpro_cron_trial_ending_warnings'); //this warning has been deprecated since 1.7.2
148
+ wp_schedule_event(current_time('timestamp'), 'daily', 'pmpro_cron_expire_memberships');
149
+ wp_schedule_event(current_time('timestamp'), 'monthly', 'pmpro_cron_credit_card_expiring_warnings');
150
+
151
+ //add caps to admin role
152
+ $role = get_role( 'administrator' );
153
+ $role->add_cap( 'pmpro_memberships_menu' );
154
+ $role->add_cap( 'pmpro_membershiplevels' );
155
+ $role->add_cap( 'pmpro_edit_memberships' );
156
+ $role->add_cap( 'pmpro_pagesettings' );
157
+ $role->add_cap( 'pmpro_paymentsettings' );
158
+ $role->add_cap( 'pmpro_emailsettings' );
159
+ $role->add_cap( 'pmpro_advancedsettings' );
160
+ $role->add_cap( 'pmpro_addons' );
161
+ $role->add_cap( 'pmpro_memberslist' );
162
+ $role->add_cap( 'pmpro_memberslistcsv' );
163
+ $role->add_cap( 'pmpro_reports' );
164
+ $role->add_cap( 'pmpro_orders' );
165
+ $role->add_cap( 'pmpro_orderscsv' );
166
+ $role->add_cap( 'pmpro_discountcodes' );
167
+
168
+ do_action('pmpro_activation');
169
+ }
170
+ function pmpro_deactivation()
171
+ {
172
+ //remove crons
173
+ wp_clear_scheduled_hook('pmpro_cron_expiration_warnings');
174
+ wp_clear_scheduled_hook('pmpro_cron_trial_ending_warnings');
175
+ wp_clear_scheduled_hook('pmpro_cron_expire_memberships');
176
+ wp_clear_scheduled_hook('pmpro_cron_credit_card_expiring_warnings');
177
+
178
+ //remove caps from admin role
179
+ $role = get_role( 'administrator' );
180
+ $role->remove_cap( 'pmpro_memberships_menu' );
181
+ $role->remove_cap( 'pmpro_membershiplevels' );
182
+ $role->remove_cap( 'pmpro_edit_memberships' );
183
+ $role->remove_cap( 'pmpro_pagesettings' );
184
+ $role->remove_cap( 'pmpro_paymentsettings' );
185
+ $role->remove_cap( 'pmpro_emailsettings' );
186
+ $role->remove_cap( 'pmpro_advancedsettings' );
187
+ $role->remove_cap( 'pmpro_addons' );
188
+ $role->remove_cap( 'pmpro_memberslist' );
189
+ $role->remove_cap( 'pmpro_memberslistcsv' );
190
+ $role->remove_cap( 'pmpro_reports' );
191
+ $role->remove_cap( 'pmpro_orders' );
192
+ $role->remove_cap( 'pmpro_orderscsv' );
193
+ $role->remove_cap( 'pmpro_discountcodes' );
194
+
195
+ do_action('pmpro_deactivation');
196
+ }
197
+ register_activation_hook(__FILE__, 'pmpro_activation');
198
+ register_deactivation_hook(__FILE__, 'pmpro_deactivation');
readme.txt CHANGED
@@ -1,1073 +1,1076 @@
1
- === Paid Memberships Pro ===
2
- Contributors: strangerstudios
3
- Tags: memberships, membership, authorize.net, ecommerce, paypal, stripe, braintree, restrict access, restrict content, directory site, payflow
4
- Requires at least: 3.5
5
- Tested up to: 4.2.2
6
- Stable tag: 1.8.4
7
-
8
- The easiest way to GET PAID with your WordPress site. Flexible content control by Membership Level, Reports, Affiliates and Discounts
9
-
10
- == Description ==
11
- Set up unlimited membership levels and provide restricted access to pages, posts, categories, videos, forums, downloads, support, single "a la carte" page access, and more. Paid Memberships Pro is flexible enough to fit the needs of almost all online and offline businesses. It works great out of the box, but is easy for developers to customize to fit your needs.
12
-
13
- [youtube http://www.youtube.com/watch?v=33nORRIZaQk]
14
-
15
- Paid Memberships Pro is the community solution for adding paid memberships to your WordPress site. PMPro is 100% GPL. All code, including add-ons, is available for free from the WordPress repository here or on our site at http://www.paidmembershipspro.com. This version in the WordPress repository is the full version of the plugin with no restrictions or additional licenses required. Developers should get involved at [our GitHub page](https://github.com/strangerstudios/paid-memberships-pro/).
16
-
17
- = Integrate with The Most Popular Payment Gateways. =
18
- Stripe, Authorize.net, Braintree Payments, and PayPal (Standard, Express, Website Payments Pro, and PayPal Payments Pro/Payflow)
19
-
20
- = Works with Any Theme You Want. =
21
- Your Existing Theme or a Popular Free or Premium Third-Party Theme.
22
-
23
- = Infinitely Configurable, Unlimited Membership Levels. =
24
- Set up the membership levels that best fit your business, whether they are Free, Paid, or Recurring Subscriptions (Annual, Monthly, Weekly, Daily). Offer Custom Trial Periods (Free Trial, Custom-length Trial, 'Introductory' Pricing)
25
-
26
- = Easy-to-Use Admin Pages and Settings. =
27
- 1. Membership access by Page/Post/Category
28
- 2. Members list with CSV export
29
- 3. Easy payment gateway setup
30
- 4. Ever expanding list of membership reports
31
- 5. Membership discounts with customizable price rules
32
-
33
- = Control the User-Experience from Start to Finish. =
34
- Your members can update their billing information or cancel their account directly on your site. Any active subscription will be cancelled at the payment gateway for you.
35
-
36
- = Integrate with Top Third Party Tools. =
37
- PMPro integrates with Mailchimp, Constant Contact, AWeber, KISSMetrics, Infusionsoft, WP Courseware, LearnDash, Post Affiliate Pro, bbPress, WooCommerce, and many more popular third party tools.
38
-
39
- = Free Add-ons to Customize and Extend PMPro. =
40
- Extensions, sister plugins, and other bits of code to customize your implementation and help you integrate with 3rd party services or other plugins. All open source and available for free under the GPL v2 license.
41
-
42
- [View the PMPro Add-Ons](http://www.paidmembershipspro.com/add-ons/)
43
-
44
- == Installation ==
45
-
46
- = Download, Install and Activate! =
47
- 1. Download the latest version of the plugin.
48
- 2. Unzip the downloaded file to your computer.
49
- 3. Upload the /paid-memberships-pro/ directory to the /wp-content/plugins/ directory of your site.
50
- 4. Activate the plugin through the 'Plugins' menu in WordPress.
51
-
52
- = Complete the Initial Plugin Setup =
53
- The plugin will walk you through initial setup - basic steps are outlined below.
54
-
55
- 1. Add one or more Membership Levels
56
- 2. Set up the PMPro Pages
57
- 3. Configure your Payment Gateway and SSL
58
- 4. Customize Email Settings
59
- 5. Review Advanced Settings (best left untouched).
60
-
61
- [A tutorial video of the initial plugin setup is available here](http://www.paidmembershipspro.com/documentation/initial-plugin-setup/tutorial-video/).
62
-
63
- [Written instructions on initial plugin setup are available here](http://www.paidmembershipspro.com/documentation/initial-plugin-setup/).
64
-
65
- == Frequently Asked Questions ==
66
-
67
- = I need help installing, configuring, or customizing the plugin. =
68
- Please visit [our premium support site at http://www.paidmembershipspro.com](http://www.paidmembershipspro.com) for more documentation and our support forums.
69
-
70
- = I found a bug in the plugin. =
71
- Please post it in the [WordPress support forum](http://wordpress.org/tags/paid-memberships-pro?forum_id=10) and we'll fix it right away. Thanks for helping.
72
-
73
- = My site is broken or blank or not letting me log in after activating Paid Memberships Pro =
74
- This is typically caused by a conflict with another plugin that is trying to redirect around the login/register pages or trying to redirect from HTTP to HTTPS, etc.
75
-
76
- To regain access to your site, FTP to your site and rename the wp-content/plugins/paid-memberships-pro folder to wp-content/plugins/paid-memberhsips-pro-d (or anything different). Now WP will not be able to find PMPro, and you can gain access to /wp-admin/ again. From there, visit the plugins page to fully deactivate Paid Memberships Pro. (You'll want to rename the folder back to paid-memberhsips-pro again.)
77
-
78
- Long term, you will need to find and fix the conflict. We can usually do this for you very quickly if you sign up for support at http://www.paidmembershipspro.com/pricing/ and send us your WP admin and FTP credentials.
79
-
80
- = Does PMPro Support Multisite/Network Installs? =
81
- "Supporting multisite" means different things to different people.
82
-
83
- Out of the box PMPro will basically act as a stand alone plugin for each site. Each site has its own list of membership levels, members, payment settings, etc.
84
-
85
- I've written a plugin [PMPro-Network](http://www.paidmembershipspro.com/add-ons/plugins-on-github/pmpro-network-multisite-membership/) that shows the basics for allowing users who signs up for a membership at one site to be able to create or reclaim their own site under the multisite setup. It's powerful stuff.
86
-
87
- If you would like more help using PMPro on a network install, sign up for support at http://www.paidmembershipspro.com.
88
-
89
- = Does PMPro Support X? =
90
- Not sure? You can find out by doing a bit a research.
91
-
92
- 1. [Check our compatibility page](http://www.paidmembershipspro.com/compatibility/).
93
- 2. [Check our add ons](http://www.paidmembershipspro.com/add-ons/).
94
- 3. [Do a search on our site](http://www.paidmembershipspro.com/).
95
- 4. [Ask in the forums here](http://wordpress.org/tags/paid-memberships-pro?forum_id=10).
96
-
97
- == Screenshots ==
98
-
99
- 1. Set up the membership levels that best fit your business, whether they are Free, Paid, or Subscriptions (Annual, Monthly, Weekly, Daily). Offer Custom Trial Periods (Free Trial, Custom-length Trial, 'Introductory' Pricing)
100
- 2. Easy to use Membership Access Settings by Page, Post, or Category. Shortcodes to display restricted content inline. Developer-friendly hooks to restrict access any way you need.
101
- 3. Members are WordPress Users. PMPro provides a unique interface to view, filter and search Members or export your Members List.
102
- 4. Offer Membership Discounts with specific price rules (restricted by level, unique pricing for each level, # of uses, expiration date.)
103
-
104
- == Changelog ==
105
- = 1.8.4 =
106
- * BUG: Fixed the Stripe webhook to work on new orders that are storing the subscription id instead of the customer id in the subscription_transaction_id field. (Thanks, nickd32 on GitHub)
107
- * BUG: Fixed issue where the name and email address of customers was not being sent to Stripe if existing members checked out while the "show billing address" option was set to false.
108
- * BUG: Fixed bug where users who checked out with the Braintree Payments gateway could checkout again using their on file credit card if an invalid credit card was entered at checkout the second time. (Thanks, patternsinthecloud)
109
- * BUG: Updated the 2Checkout PHP API library and fixed some issues with 2Checkout integration.
110
- * BUG: Fixed issue where custom roles had to have pmpro_membershiplevels capability to view other PMPro-related dashboard pages. (Thanks, squarelines)
111
- * ENHANCEMENT: Added the ability to order levels on the Levels page by drag and drop in the WordPress admin.
112
- * ENHANCEMENT: Now hiding tabs in the PMPro settings if a user doesn't have access to that tab (but does have access to other tabs).
113
- * ENHANCEMENT: Converted all files to unix format and removed trailing whitespace. This has no functional change on the plugin, but helps developers who are contributing. (Thanks, meths on GitHub)
114
- * ENHANCEMENT: New Danish translation. (Thanks, Morten Stenbæk and Frederik Hermund)
115
-
116
- = 1.8.3.1 =
117
- * BUG: Changed some uses of $wpdb->base_prefix to $wpdb->prefix to fix multisite support.
118
- * BUG: Wrapped pmpro_isDateThisMonth in a function_exists check since some addons already have this defined.
119
-
120
- = 1.8.3 =
121
- * SECURITY PATCH: The pmpro_getOption function has been updated to not set values from $_REQUEST when available. This allowed malicious users to override PMPro settings on single page loads allowing them to inject text into pages and do other "bad things". (Thanks, Charles Hill)
122
- * SECURITY PATCH: Many calls to pmpro_getOption("gateway") were changed to use pmpro_getGateway which specifically allowed for overriding that one value via a request parameter (the validity of the gateway is double checked).
123
- * BUG: No longer showing the number of visits/views/logins "this month" when the user hasn't visited in over a month. (Thanks, Kenneth)
124
- * BUG: Fix for email from names with apostrophes and quotes in them.
125
- * BUG: Using current_time() and escaping form values better in logins report.
126
- * BUG: Fixed issue in pmpro_generateUsername() when checking for duplicates. (Thanks, Ruslan)
127
- * BUG: Fixed issue where $user var wasn't set for emails sent out in the Braintree webhook script. (Thanks, Charles Hill)
128
- * ENHANCEMENT: Added pmpro_account_bullets_top and pmpro_account_bullets_bottom hooks to add content to the accounts page.
129
- * ENHANCEMENT: Added pmpro_get_recurring_payments_profile_details_nvpstr, pmpro_manage_recurring_payments_profile_status_nvpstr, pmpro_create_recurring_payments_profile_nvpstr, pmpro_do_express_checkout_payment_nvpstr, and pmpro_get_express_checkout_details_nvpstr hooks to filter specific nvp strings in the PayPal Express integration.
130
- * ENHANCEMENT: Added labels to checkboxes in the dashboard settings pages.
131
- * ENHANCEMENT: Can now use the [pmpro_account] shortcode on other pages/widgets/etc. Can also limit to specific sections [pmpro_account sections='memberships,profile,invoices,links'] just remove sections from that list.
132
- * ENHANCEMENT: Changed all uses of the global $table_prefix to use $wpdb->base_prefix to aid in compatibility when loading WordPress with other PHP code (e.g. phpBB). (Thanks, Dion)
133
- * ENHANCEMENT: The notification script was updated to point to notifications.paidmembershipspro.com instead of www.paidmembershipspro.com/notifications/. This allows us to keep our notification script on a different server. This script is used to insert notifications into the PMPro admin pages when important updates are available.
134
-
135
- = 1.8.2.2 =
136
- * BUG: Fixed conflicts when other plugins with older Recaptcha libraries are also activated. Prefixed our copy of the Recaptcha library and functions with pmpro_ and added code to handle cases where an older version of recaptch is used at checkout.
137
- * BUG: Fixed warnings in pmpro_formatPrice. (Thanks, Andrea Carraro)
138
-
139
- = 1.8.2.1 =
140
- * BUG: Fixed issue where admins would get emails RE membership changes whenever a profile was updated even if the membership wasn't changed. (Thanks, chrisw123)
141
-
142
- = 1.8.2 =
143
- * BUG: Fixed issue where calls to pmpro_hasMembershipLevel() using level names wasn't working. (Thanks, Scott Slone)
144
- * BUG: Fixed issue with memberslistcsv capabilities. (Thanks, Arnaud Devic)
145
- * BUG: Fixed fatal error that could come up sometimes when PMPro could not find a subscription for a user in Stripe. (Thanks, Chris Eller)
146
- * ENHANCEMENT: Triming whitespace off of search text on members list and orders list searches.
147
- * ENHANCEMENT: Security hardening of SQL queries for members list, orders list, and some helper functions.
148
-
149
- = 1.8.1 =
150
- * BUG: Fixed typos in pmpro_memberslist_csv and pmpro_orderscsv capabilities. (Thanks, Arnaud Devic)
151
- * BUG: Only loading the Braintree API when using it now.
152
- * BUG: Fixed fatal error that would occur at checkout if PayPal Standard were used with a discount code. (Thanks, John Zeiger)
153
- * BUG: Fixed issue where discount codes would not work if billing address fields were hidden. (e.g. paying by PayPal or check)
154
- * BUG: Fixed issue with the logic around sending emails when admin's change a member's level or expiration date. Admins will always get an email. Members will only get an email if the checkbox is checked.
155
- * ENHANCEMENT: No longer showing check instructions at checkout if the level is free.
156
- * ENHANCEMENT: Added pmpro_stripe_create_subscription filter. (Thanks, nickd32 on GitHub)
157
- * ENHANCEMENT: Added Czech (cs_CZ) language files and support for using decimals as separators. (Thanks, Martin "shr3k" Kokeš on GitHub)
158
-
159
- = 1.8 =
160
- * ENHANCEMENT: Payment gateway classes updated so all settings and checkout fields are processed via the gateway class file. This will make it easier to maintain, update, and add new gateways.
161
- * ENHANCEMENT: Added a pmpro_after_membership_level_profile_fields hook after the "Membership Level" field dropdown on the edit profile page.
162
- * ENHANCEMENT: Added new statuses for orders when cancelled. cancelled = cancelled by user on cancel page or via gateway, cancelled_admin = cancelled by an admin, expired = cancelled via expiration script, level_change = user upgraded/downgraded to a different level.
163
- * ENHANCEMENT: All gateways use the $pmpro_currency global instead of getting the value via pmpro_getOption.
164
- * ENHANCEMENT: Changing South African Rand (ZAR) to use the symbol R to the left of prices. (Thanks, Rasada)
165
- * BUG: Fixed some translation issues on the checkout page and in level cost text. (Thanks, Jenkisan)
166
- * ENHANCEMENT: Added plural forms of Day, Week, Month, Year to es_ES translation. Other translation files will need to as well.
167
- * BUG: Fixed bug where the $short parameter of pmpro_getLevelCost wasn't shortening the output in some cases. (Thanks, Kimberly Coleman)
168
- * BUG: Fixed warning in membership dropdown on edit user/profile page. (Thanks, Thomas Sjolshagen)
169
- * ENHANCEMENT: Added German (de_DE) translation files. (Thanks, Cedros)
170
- * ENHANCEMENT: Added Dutch (nl_NL) translation files. (Thanks, Het Verzamelteam)
171
- * ENHANCEMENT: Added settings links to plugins page.
172
- * BUG: Fixed bug in Safari for iOS where checkout submission would fail after choosing "Not Now" when prompted to save the card.
173
- * ENHANCEMENT: Added user row actions to the members list and orders list in the dashboard. Add actions using the pmpro_memberslist_user_row_actions and pmpro_orders_user_row_actions filters which work the same as the core WP user_row_actions filter.
174
- * BUG: Fixed issues with the membership shortcode and pmpro_hasMembershipLevel function.
175
- * ENHANCEMENT: Can now use L or -L to check if a user is logged in (L) or not (-L) in the membership shortcode or pmpro_hasMembershipLevel function.
176
- * ENHANCEMENT: Updated to the new version of Google's ReCaptcha.
177
- * BUG: Fixed issue with quotes and other special characters in membership level names, descriptions, and confirmations. (Thanks, Marcelo Hinojosa)
178
-
179
- = 1.7.15.3 =
180
- * BUG: Now correctly setting $saveid when a discount code is created so the pmpro_save_discount_code hook will have the correct id value when codes are created.
181
- * BUG: Using get_userdata in checkout code for better multisite support when setting default role of new users.
182
-
183
- = 1.7.15.2 =
184
- * BUG: Stripe JS looks for a field with id AND name = CardType now so the new checkout code is compatible with older checkout templates and will avoid "complete all fields" errors.
185
- * BUG: Removed the urlencode wrappers on the Payflow API calls. Payflow seems to expect the values to be NOT encoded.
186
- * BUG: No longer running email content through wpautop if there is already HTML in an included header or footer for the email. (Thanks, Erik Bertrand)
187
-
188
- = 1.7.15.1 =
189
- * BUG: Fixed issue where "complete all required fields" was being shown when using Stripe. They are calling the CardType "brand" in their return object, not "type".
190
- * BUG: Removed code from includes/notifications.php that was deleting the transient used to keep PMPro installs from hitting the PMPro server too often.
191
- * ENHANCEMENT: Added the "pmpro_checkout_signon_secure" filter so you can tell PMPro to login over http or https in case other plugins (like WordPress MU Domain Mapping) conflict with what should be chosen here.
192
- * Avoiding some warnings.
193
-
194
- = 1.7.15 =
195
- * SECURITY FIX: The /services/getfile.php script has been disabled by default. You must set the PMPRO_GETFILE_ENABLED constant to true or 1 to allow the script to run. Additionally, the script will strip ../ and /. type strings out of the URI when looking for files to get and will not read any files using the extensions set via the pmpro_getfile_extension_blacklist filter. By default inc, php, php3, php4, php5, phps, and phtml file types are not allowed. (Thanks, Kacper Szurek)
196
- * BUG: Fixed issue with Stripe integration where existing members checking out for new recurring subscriptions would receive extra charges. Now deleting the old Stripe subscription and any related open invoices and creating a new subscription instead of just updating the old subscription. (Thanks, Antonv and Thomas Sjolshagen)
197
- * BUG: Fixed issue with Braintree integration where the billing address associated with a credit card was not being updated via the update billing page. (Thanks, Keith Abramo)
198
- * BUG: Fixed issue where pmpro_next_payment() would return a 0 timestamp instead of false when there is no previous order. (Thanks, Thomas Sjolshagen)
199
- * ENHANCEMENT: Added pmpro_formatPrice() and pmpro_getCurrencyPosition() functions. Now using them to render prices with formatting. You can use the pmpro_format_price filter or pmpro_currecies filter to adjust the formatting of prices to support currency symbols after the price or to use commas instead of periods for separators.
200
- * ENAHNCEMENT: Added getSubscriptionStatus() to Authorize.net gateway class. Also fixed up some of the logic around checking the gateway environment.
201
- * BUG: Now urlencoding the API Username and Password sent through the PayPal APIs in case your values have + or other special characters in them. (Thanks, mrschmiddy)
202
- * BUG: Now showing cycle number in the Fee column of the members list. E.g. a level that is $10 every 3 months will now show up as $10.00 + $10.00/3 Months.
203
- * BUG: Fixed bug where user first_name and last_name were being overwritten by PayPal values when using PayPal Standard.
204
- * ENHANCEMENT: Added PMPRO_CRON_LIMIT constant, which can be used to limit the number of records processed by each scheduled cron job. This can for example, keep your server from going over PHP time limits or email limits. Use define('PMPRO_CRON_LIMIT', 100); to set the limit to 100.
205
- * BUG: Discount code AJAX calls now going through admin-ajax.php, fixing issues where the Themed Profiles module of Theme My Login would block those calls. (Thanks, Tony)
206
- * ENHANCEMENT: Removed the "CardType" field at checkout and now using the jquery.creditCardValidator script to determine the card type on form submit.
207
- * BUG: No longer setting $order->subtotal and invoice total to the billing amount (vs the initial price) for recurring payments with Cybersource, PayPal Standard, PayPal Express or Twocheckout. (Thanks, Joce Nunes)
208
- * ENHANCEMENT: The search filter will no longer filter out a post that is in a category blocked by one membership level if the user also has access to that content through another category.
209
- * BUG/ENHANCEMENT: Running email body through wpautop if it doesn't look like HTML.
210
- * ENHANCEMENT: Added pmpro_getfile_before_error hook in getfile.php.
211
- * ENHANCEMENT: Added pmpro_ipn_check_receiver_email filter if you want to change how the email is checked in the IPN log.
212
- * BUG: Fixed bug where reports would show duplicate month labels on the last day of the month.
213
- * BUG: Fixed some issues with logging in at checkout, especially when using FORCE_SSL_ADMIN. (Thanks, Wimans)
214
- * ENHANCEMENT: Added "pending" as a default status for orders available on the edit order page in the dashboard.
215
-
216
- = 1.7.14.2 =
217
- * BUG: Removed the debug call to d($...) that was left in preheaders/checkout.php and would show up when checkout forms were submitted with empty fields. (Thanks, Nicolas)
218
-
219
- = 1.7.14.1 =
220
- * BUG: Fixed warnings in PayPal Express class that could break redirects at checkout. (Thanks, Adam Warner)
221
- * BUG: Fixed issue where new users who checked out with Braintree weren't having their customerid's saved, which led to subscription syncronization issues if they checked out again or updated their billing.
222
- * BUG: Fixed warnings in the membership-billing page.
223
- * BUG: Fixed false positive "There are JavaScript errors on the page. Please contact the webmaster." errors.
224
- * BUG: Fixed issue where users on some sites running 1.7.14 could not logout.
225
- * OTHER: Changed the CSS class of the checkout button generated via [checkout_button] shortcode or pmpro_getCheckoutButton() function from "btn btn-primary" to "pmpro_btn" to match other buttons generated with PMPro.
226
-
227
- = 1.7.14 =
228
- * BUG: Fixed bug where level cost would sometimes have incorrect pluralization of months/weeks/etc. (Thanks, Kevin Ackerman)
229
- * BUG/ENHANCEMENT: Now checking the child and parent theme for email_header.html and email_footer.html files to use for emails. The child theme is checked first.
230
- * ENHANCEMENT: Added pmpro_getfile_before_readfile hook (passes $filename and $mimetype params) in getfile.php
231
- * BUG/ENHANCEMENT: getMembershipLevel method of MemberOrder can now handle when discount_code property is an object. Also, the IPN Handler and 2Checkout handler will now try to get the discount code for the order to correctly update the users pmpro_memberships_users entry.
232
- * BUG: Removed extra class attribute from CVV field that interfered with the required * JS code and some other CSS/JS-related things. (Thanks, catapult)
233
- * ENHANCEMENT: Added code to redirect to the redirect_url if you pass a redirect_url to the login page and the user is already logged in. Updated the links in email confirmations to use login links with redirects instead of direct links.
234
- * EHANCEMENT: Added pmpro_email_attachments filter, which can be used to add attachments to PMPro emails that are sent out. E.g., https://gist.github.com/strangerstudios/c4e771dca8723613bce3
235
-
236
- = 1.7.13.1 =
237
- * Fixed bug introduced in 1.7.12 where discount code uses were not being tracked.
238
- * Added pmpro_check_discount_code filter so you can do your own checks on discount codes.
239
-
240
- = 1.7.13 =
241
- * Added Danish (da_DK) translation. (Thanks, Mikael)
242
- * Fixed bugs with timestamps in various places (especially around trial dates) introduced in 1.7.12
243
- * Another fix to keep PMPro from sending "undefined undefined" as the name to Stripe when the 'don't show billing fields' option is chosen.
244
- * $pmpro_stripe_verify_address flag defaults to same value of Stripe's showbillingaddress option now.
245
- * Changed the priority of pmpro_applydiscountcode_init hooking on init to 11 so pmpro_init() will run before and setup pmpro_currency_symbol among other things. (Thanks, semyou on GitHub.)
246
- * Explicitly setting $current_user->membership_level in a few places to avoid issues where current_user is overwritten between init and when we try to use it.
247
- * Avoiding a warning in pmpro_getMetavalues() function. (Thanks, Scott Sousa)
248
- * Added target="_blank" to help links on admin pages. (Thanks, AntonVrba on GitHub)
249
-
250
- = 1.7.12 =
251
- * Now including expiration text in text that is updated when a discount code is used. (Thanks, John Zeiger)
252
- * Fixed check for subscription_transaction_id in readonly fields array.
253
- * Making sure that $myuser->membership_level is set in pmpro_has_membership_access().
254
- * Added Norwegian locale files. (Thanks, Maritk)
255
- * Added Turkish locale files. (Thanks, yasinkuyu on GitHub.)
256
- * Fixed error where "undefined" was being passed to Stripe for the name.
257
- * Fixed error with setting enddates on the edit user page for users with multiple "active" memberships.
258
- * "Renew" link will show up on levels page only if the user has the level and it is not recurring and has an enddate.
259
- * Stripe gateway is using $pmpro_currency global instead of getting value via pmpro_getOption, so it can be overridden via code like https://gist.github.com/strangerstudios/8806443
260
- * Payflow Pro gateway is now passing the currency code to the API for non-US currencies. (Thanks
261
-
262
- = 1.7.11 =
263
- * Added "Filter searches and archives?" setting to advanced settings tab. If you had "Show excerpts to non-members?" set to No before, then this will be set to Yes after upgrade. But now you can show excerpts on single post pages while still hiding restricted content from searches and archives.
264
-
265
- = 1.7.10.2 =
266
- * Fixed MySQL warning/error that was introduced in 1.7.10.1 and showing for some people who had "hide excerpts" enabled.
267
-
268
- = 1.7.10.1 =
269
- * Fixed bug where the $pmpro_levels global would sometimes not include all levels on the levels page. (A better fix for this is coming in v2.0.)
270
- * Fixed bug in pmpro_getMemberDays that sometimes reported more days than the user had really been a member. (Thanks, surefireweb)
271
- * Fixed bug where search results were being incorrectly filtered. The pmpro_search_filter() function in includes/content.php hides member content from non-members if the "show exceprts" setting is set to false.
272
- * Now checking specifically for payment_status = 'Failed' in the IPN handler before sending off the payment failed emails. (There may be other statuses we want to consider as "failures" as well, but we want to avoid failing on "pending" statuses/etc.)
273
-
274
- = 1.7.10 =
275
- * Added getGatewaySubscriptionStatus() and getGatewayTransactionStatus() methods to the MemberOrder class. These are implemented for PayPalExpress right now and will hit the gateway API to return information on a subscription or transaction.
276
- * Added pmpro_memberslist_expires_column filter to members list. $order is passed as second parameter. Use this to filter the date or "Never" shown in the Expires column.
277
- * No longer showing "Membership Levels" link in dashboard menu if a user has access to other PMPro settings pages, but not the membership levels page.
278
- * Added pmpro_applydiscountcode_return_js hook. http://www.paidmembershipspro.com/hook/pmpro_applydiscountcode_return_js/
279
- * Fixed formatting of the level cost when a discount code is applied via AJAX.
280
- * Removed extra $ in checkout_check.html email template.
281
- * Fixed bug where pmpro_setOption was not working for array values in $_POST, e.g. the hideadlevels setting on the Advanced Settings page.
282
- * pmpro_getMembershipCategories($level_id) now returns an array of category IDs instead of an array of arrays.
283
- * Swapped all _x function calls to use __ or _e so they are translated.
284
- * Initial Czech Republic (cs_CZ) translation files. (Thanks, Petr Hlaváček)
285
-
286
- = 1.7.9.1 =
287
- * Firing activation hook on upgrade so menu doesn't disappear.
288
-
289
- = 1.7.9 =
290
- * Updated PayPal Express/Standard/WPP gateways to throw an error when trying to cancel a subscription that is in pending or suspended status. A warning is shown to the user to contact the site owner or cancel the subscription through PayPal. The WP admin should also get an email about the failure. In the future, there may be a better way to handle these situations automatically, but PayPal doesn't advise how to "cancel" pending subscriptions.
291
- * Added optional $membership_id parameter to getLastMemberOrder() method of the MemberOrder class. So you can get the last member order of a specific level.
292
- * Added Slovakian translation. (Thanks, Peter Belko)
293
- * Added WP capabilities for each PMPro settings or report page. Admins are given these caps on plugin activation. Or you can set up other roles to use these caps. E.g. https://github.com/strangerstudios/pmpro-membership-manager-role/
294
-
295
- = 1.7.8.2 =
296
- * Updated the Stripe API library to version 1.11.0.
297
- * Fixed issues where users upgrading or downgrading would have their subscriptions cancelled at Stripe.
298
- * Fixed issues where extra emails were being sent out when users cancelled a membership when using Stripe.
299
- * Generally made the Stripe integration better and ready for version 2.0.
300
- * The Stripe webhook will now add a 5 second delay before processing most requests. This is to ensure that PMPro has time to update the order during checkout (Stripe can sometimes receive a charge or cancellation, then send the webhook, and WP can process that in the split second it takes PMPro to save an order during checkout.). This prevents duplicate orders in the PMPro DB on some charges and fixes some issues with cancellations.
301
- * Setting constant PMPRO_STRIPE_WEBHOOK_DEBUG to true will send an email to the WP admin every time the Stripe Webhook is hit. You can also set it to an alternative email address or "log" to have it added to ../paid-memberships-pro/logs/stripe-webhook.txt.
302
- * Setting constant PMPRO_IPN_DEBUG to true will send an email to the WP admin every time the IPN handler is hit. You can also set it to an alternative email address or "log" to have it added to ../paid-memberships-pro/logs/ipn.txt.
303
- * Now showing the PMPro order ID/code in INVOICE emails instead of the Stripe order id when using the Stripe gateway.
304
-
305
- = 1.7.8.1 =
306
- * Important fix for Braintree Payments users. Credit card information is now correctly updated in Braintree when users submit the form on the billing information page or checkout again on the site. (Thanks, Bryan Paronto and venrooy)
307
- * Updated Italian translation files. (Thanks, Angelo Giammarresi)
308
- * Fixed string wrapping in reports for translation.
309
- * Fixed PHP warning in membership stats report.
310
-
311
- = 1.7.8 =
312
- * Added various hooks.
313
- * Updated the expiration field dropdown on the edit levels page to use translation strings. (Thanks, 24uurdates)
314
- * Fixed other missing strings for translation. Added Right-to-Left support. (Thanks, louy on GitHub.)
315
- * Added the pmpro_member_startdate filter to filter the pmpro_getMemberStartdate function. Passes $user_id, and $level_id as parameters.
316
- * Added pmpro.getMembershipLevelForUser and pmpro.hasMembershipAccess XMLRPC methods. Example usage: https://gist.github.com/strangerstudios/9099164
317
- * Moved the Terms of Service page/etc to right above the checkout button.
318
- * Now caching the pmpro_getAllLevels() function.
319
- * Added HTML <!-- comment --> wrappers to the JS on checkout.php. Helps with validation and potentially really old browsers.
320
- * Fixed warnings in includes/login.php.
321
- * Added pmpro_delete_discount_code and pmpro_delete_membership_level actions which run just BEFORE a membership level is deleted. Both pass the discount code ID or level ID respectively.
322
- * Added a third "short" parameter to the pmpro_getLevelCost() function. If set to true the "The price for membership is" text is left off the beginning. The new levels page uses this param.
323
- * Updated the table on the levels page to have one "Price" column showing the cost and expiration text. The text is generated using pmpro_getLevelCost and pmpro_getLevelExpiration instead of its own rules.
324
- * Updated level cost text to say $1/mo instead of $1 now and then $1/mo, etc. (Thanks, louy on GitHub.)
325
- * Added a debug by email method for the Authorize.net Silent Post handler. Add define('PMPRO_AUTHNET_SILENT_POST_DEBUG', true); to your wp-config.php. We will probably move the other services to debug by email as well.
326
- * PMPro will now only filter the from name and email if the default values are detected (WordPress <wordpress@sitename.com>). This fixes issues where the from name and email on form emails or other plugin emails were being swapped out with the PMPro settings, which was not always desirable. (Thanks, Helen Hou-Sandi and others.)
327
- * Added an "Only Filter PMPro Emails?" option to the email settings. If checked, only emails sent through the PMProEmail class will have their from name and email adjusted to match the PMPro email settings.
328
- * Added filter options to orders page in admin and export. (Thanks, HTCIA and Harsha Venkatesh)
329
- * Added Brazilian Portuguese translation. (Thanks, dballona on GitHub.)
330
- * Fixed some warnings. (Thanks, AlexBiddle on GitHub.)
331
- * Added pmpro_custom_advanced_settings hook to add settings to advanced settings page. Details on usage here: https://github.com/strangerstudios/paid-memberships-pro/pull/86 (Thanks, Jess Oros)
332
- * Updated addon categorization to reflect a lot of addons which have moved into the WordPress.org repository as well as updated versions.
333
-
334
- = 1.7.7 =
335
- * Fixed bug where user_id = '' was breaking on some MySQL setups and keeping the pmpro_membership_orders table from being populated.
336
- * Updated "Joined" column in members list to use the WP date format setting.
337
- * Removed redundant phone number on checkout page if bphone is already set.
338
- * When adding extra columns to the Members List CSV export via pmpro_members_list_csv_extra_columns, we are now passing the original heading/field name to callback function. So you can use that in your callback functions. This generally means you can use one function that just dumps the meta value rather than requiring a separate function for each meta value.
339
- * Fixed bug where "Show Billing Fields" option was visible on the payment settings page for the testing gateway. (This option is only for Stripe.)
340
- * Fixed bug with choosing levels to hide ads from on advanced settings tab. (Thanks, Alain Fradette)
341
- * Fixed bug where PayPal Express was adding tax twice for subscription charges. (This does not fix existing subscriptions on the PayPal side.)
342
- * Fixed bug with the Stripe Webhook where non-PMPro orders were being added to PMPro via the webhook. If the customer_id cannot be found (i.e. it's a non-PMPro customer), the order is ignored. (Thanks, Jacob Glenn)
343
- * The getMemberOrderByPaymentTransactionID() function has been updated to return false if no payment_transaction_id is passed in (instead of finding the first order where the id is blank). This is inline with the getMemberOrderBySubscriptionTransactionID() function.
344
- * Fix to code that hides posts from search to NOT hide posts that a user has access to but might also be accessible by users of a different level. (Thanks, normanyung on GitHub)
345
- * Added a pmpro-en_GB translation that changes "State" to "County" on the billing address fields. (Thanks, alexbiddle on GitHub)
346
-
347
- = 1.7.6 =
348
- * Added "Old Members" option to the members list page to view members who don't have an active membership, but did in the past. (Note that we don't differentiate between members who expired and who cancelled.)
349
- * The PayPal IPN Handler has been updated to process "subscr_cancel" messages from PayPal. This should cancel memberships in WP/PMPro when users or PayPal admins cancel a subscription at PayPal when using PayPal Express or Website Payments Pro. There are still known issues with syncing cancellations with PayPal Standard.
350
- * Fixed bug where "error cancelling subscription" emails were being sent out erroneously. These should only go out now if PMPro has trouble cancelling a subscription. If you got a lot of these before, you should get less. If you never got this, you might start getting it sometimes.
351
- * Orders are now set to "cancelled" status whether any attached subscriptions were cancelled or not. (Keeps us from trying again.)
352
- * Fixed bug where All Pages view in WP dashboard would sometimes redirect to the registration page if you had Theme My Login installed.
353
- * Setting startdate to NOW() when a user's level is changed via pmpro_changeMembershipLevel() using a level ID... also when admin's manually change a user's level. This fixes issues with PMPro Series where users who were given a level this way appear to have a start date in 1970, etc.
354
- * Fixed bug with the pmpro_save_discount_code_level filter where -1 was being passed as the code_id for brand new codes.
355
- * Updated "The ____ code has been applied to your order" message to it is wrapped for localization.
356
- * Now checking ICL_LANGUAGE_CODE instead of $_REQUEST['lang'] to support WPML using different language URL formats.
357
- * Unsetting $all_membership_levels[$user_id] at the bottom of pmpro_changeMembershipLevel().
358
- * Added $force parameter to pmpro_getMembershipLevelForUser($user_id, $force). If set to true, it will ignore the cached value and pull the level from the DB.
359
- * Added autocomplete="off" to credit card account number field on checkout and update billing pages.
360
- * Added an optional $seed parameter to pmpro_getDiscountCode() which will add $seed to the scrambled string. Useful when generating many discount codes quickly and time() might not have changed.
361
- * Now hiding "Change Membership Level" link from Member Links section of Membership Account page if PMPRO_DEFAULT_LEVEL is defined.
362
- * Clearing the AccountNumber value at checkout if it is XXXX..., e.g. when we mask the Stripe CC number. This way users will know they need to re-enter the credit card again. (Thanks, Gary)
363
- * Fixed bug on checkout page where html classes for the bstate field were being set based on the bcity value instead.
364
- * Fixed bug where there was no space after the "." in some level cost text. (Thanks, multiple observers ;)
365
- * Added some explanatory text to the payment settings page about taxes and SSL seals.
366
- * Added a pmpro_formatAddress() function to format billing addresses/etc.
367
- * Fixed bug where blank billing addresses were showing up in confirmation emails. If you use custom email templates, update them to use the !!billing_address!! variable instead of the full address section.
368
- * Design updates to checkout buttons, admin screens, etc, to work better with WP 3.8 and the TwentyFourteen theme.
369
-
370
- = 1.7.5 =
371
- * Fixed all open bugs with 2Checkout gateway. You can now use this gateway for one time and recurring levels. We're still keeping the beta message though until we have further live testing.
372
- * The shortcodes for the PMPro pages (e.g. pmpro_levels/etc) will now work on multiple pages. Things may still act funny if you put the shortcodes on pages other than those set in the page settings, but you can do so if you know what you are doing. One limitation still in place is that you can only have one PMPro page shortcode per page. Whichever comes first will be used.
373
- * Added support for WPML. Simply make a copy of each PMPro page for each language. Set the PMPro page settings to the default language pages.
374
- * Updated pmpro.pot template along with a script gettext.sh that will allow us to easily update the pmpro.pot file when we need to.
375
- * Updated the pmpro_url function, should work the same but if you use addons or customizations and notice bugs around URLs, let me know.
376
- * Fixed bug where old membership data was being included in the members list export instead of the latest active membership data.
377
- * Filtering $morder->membership_level at checkout as well as $pmpro_level global.
378
- * When loading bemail and bconfirm email from user meta for existing users, just setting them both to $bemail so different emails don't show up.
379
- * Now sending a member's email address to Stripe when customers are created/updated.
380
- * No longer running wpautop on email via pmpro_send_email filter.
381
- * If first_name and/or last_name are passed at checkout, these are used to create a new user instead of bfirstname and blastname.
382
- * Added "view" links to the page settings page.
383
- * Fixed some potential warnings in adminpages/reports/login.php.
384
-
385
- = 1.7.4 =
386
- * Updated PayPal IPN to use HTTP 1.1 and "Connection: Close" per recent PayPal IPN updates.
387
- * Fixed bug with slashes being added to the SSL Seal text when Payment Settings are saved.
388
- * Now applying the pmpro_checkout_level filter when a membership level is loaded from an order during the review step with PayPal Express checkouts. This will fix many customizations that might have not worked with PayPal Express.
389
- * Cleaned up PayPal Express API integration a bit. Fixes some bugs on sites with one-time payments and taxes calculated in.
390
- * Change the use_ssl payment setting. You can choose "No" now for gateways that require SSL. Just make sure you set it to Yes when going live or use another method to force SSL on your checkout page. You can also set it to Yes (use JavaScript redirect) to fix some issues that come up with infinite redirects on shared hosting with specific caching/proxy techniques.
391
- * Optimized the members list and orders CSV exports to run with less memory. Especially important for large sites.
392
- * Including Italian, French, Spanish/Peru, and Spanish/Chile language files contributed from the community. Thanks Mirco Babini (mirkolofio on GitHub) and Javier Monorové (zillionsk8 on GitHub)
393
- * Fixed the email template issue for admin emails as well. The email sent to admins for free checkouts won't include the empty billing address info anymore. (Thanks, inator on GitHub)
394
- * Now redirecting from /register/ to PMPro levels page when latest versions of Theme My Login are activated. Can still disable by returning false with the pmpro_register_redirect or pmpro_login_redirect filter.
395
- * Now showing a "renew" button for the current user's level on the levels page if their level is not recurring.
396
- * Fix in crons.php where in rare cases the pmpro_expiration_notice meta was not being set correctly for users, which might lead to multiple expiration warning emails.
397
- * Updated pmpro_next_payment to work for any cycle number or period. (Thanks, antonv and others.)
398
- * Now checking for a logged in user before trying to get a billing address to prepopulate at checkout.
399
- * Updated frontend.css to make sure that background gifs in error messages aren't repeated or applied to dropdowns.
400
- * Added some currencies: CNY, INR, IDR, KRW, TRY, VND, ZAR
401
- * All currencies now available to all gateways. You still need to make sure that your gateway supports the chosen currency.
402
- * Now sending all emails from the PMProEmail class from the pmpro_getOption("from_email") setting. Some were sent from the get_option("admin_email") setting before.
403
-
404
- = 1.7.3.1 =
405
- * Using MySQL to calculate months since first order instead of date_diff, which is only available in PHP 5.3+
406
-
407
- = 1.7.3 =
408
- * pmpro_longform_address and pmpro_international_addresses now default to true. See this gist to go back to US-specific address format: https://gist.github.com/strangerstudios/6478242
409
- * Added "Show Billing Address Fields" option for the Stripe payment gateway. Set to 'No' to hide billing address fields. Replaces the functionality of the "Stripe Lite" plugin.
410
- * Added language files for es_ES, es_CL, and es_PE. Thanks, Javier Monorové (zillionsk8 on GitHub).
411
- * Added language files for fr_FR. Thanks, Jérémy De la casa.
412
- * NOTE: Language files may not be complete. The get involved, join us on GitHub.
413
- * Added Cybersource and 2Checkout gateways in beta.
414
- * Added pmpro_paypal_button_image filter so you can override the URL of the PayPal button image.
415
- * Added a new report showing signups vs. cancellations, monthly recurring revenue, and lifetime value.
416
- * Fixed issue where the checkout_paid template was always being used for emails. It now checks if the level at checkout is free and sends either the checkout_free, checkout_paid, or checkout_trial templates accordingly. (Thanks, inator on GitHub)
417
- * Fixed sales report to not show $ when hovering over bars for "sales" vs. "revenue".
418
- * Fixed issue where PayPal Standard levels using a billing frequency > 1 (e.g. every 3 months) would have an extra payment charged after one period.
419
- * Fixed SQL error in discount code admin page that could result in cycle_periods of code levels saving incorrectly. (Thanks, Sam D'Amico)
420
- * Removed note that Payflow gateway doesn't support recurring payments. It does.
421
- * Now passing the membership level id in the $data var for checkout and cancellation emails. The key is "membership_id" so use $data['membership_id'] to check/access it.
422
- * No longer setting the subtotal property of orders when the "subscribe" method of the gateways is called. This will fix cases where an initial order or a subscription with a free trial showed a charge amount > $0.
423
- * Clicking enter in discount code box at checkout will no longer submit form and will click the "apply" button.
424
- * Hiding the "Apply" button on the checkout page if a discount code was passed in. Showing it if the text field is changed.
425
- * Authorize.net now supports CAD, GBP, and EUR currencies (for US merchants only) http://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Authorize-Net-Expansion-into-Canada-the-United-Kingdom-and/ba-p/33690
426
- * Fixed notice in getfile.php
427
- * Fixed notices and expiration dates in login report.
428
- * Fixed notices in includes/notifications.php (Thanks, Nilesh)
429
- * Allowing dashes (-) in discount codes now.
430
-
431
- = 1.7.2.1 =
432
- * Fixed warning when trying to load the "free" gateway on free level checkouts.
433
- * Fixed warning coming from login report tracking.
434
- * Changed all $wpdb->escape() calls to esc_sql() to fix notice.
435
- * Fixed another bug in revenue/sales report for daily charts. (backported to 1.7.2, but a few people who upgraded missed it)
436
- * Fixed bug on add/edit level page that was causing issues in some versions of IE.
437
- * Fixed bug where links in the email_header.html and email_footer.html templates were not being converted to true links.
438
- * Removed an extra $ from the PayPal Express confirmation emails.
439
- * Fixed loading of local (in the paid-memberships-pro/languages directory) translation files. (Should have some bundled with the plugin soon.)
440
-
441
- = 1.7.2 =
442
- * Fixed the revenue/sales report to accurately track recurring sales and reports from earlier years.
443
- * Now trimming whitespace on any text field updated through the PMPro settings pages. This prevents issues like those that come up if you have whitespace in your Stripe API key, etc. Thanks, Scott Sousa.
444
- * Added discount code use tracking for PayPal Standard. Saving the use before the user goes to PayPal to pay.
445
- * Added discount code id and code columns to orders and members list CSV exports.
446
- * Changed default capability check to 'manage_options' (administrator), and added a filter named 'pmpro_edit_member_capability' to allow dev's to change this capability. Thanks, Scott Sousa.
447
- * Now removing empty (only includes the PMPro shortcode) PMPro pages when uninstalling PMPro. Thanks, Scott Sousa.
448
- * Now adding classes to the body tag (if the theme supports it through the body_class() function) to aid in design. Classes are pmpro-account, pmpro-billing, pmpro-cancel, pmpro-checkout, pmpro-confirmation, pmpro-invoice.
449
- * Adding $0 orders for free level checkouts (will help reporting).
450
- * Added pmpro_invoice_bullets_top and pmpro_invoice_bullets_bottom hooks to confirmation and invoice pages. Passes $pmpro_invoice.
451
- * Fixed members list CSV export for lists with search queries.
452
- * Added is_ssl() check to pmpro_https_filter so PMPro will add HTTPS to URLs even if the $besecure global hasn't been set yet. Thanks, Andrew Calaio at wpcurve.com.
453
- * Removed the pmpro_cron_trial_ending_warnings daily cron so trial ending emails will no longer go out. The function pmpro_cron_trial_ending_warnings() is still there if you want to call it yourself. There were issues on some sites where these emails were going out erroneously and also many ways of doing "custom trials" including setting the subscription start date back a certain number of days was not picked up as a trial by this script anyway.
454
- * Added the pmpro_cron_credit_card_expiring daily cron to send out warnings a month or so before credit cards on record are set to expire.
455
- * Updated pmpro_has_membership_access to return true if the $post_id is empty or cannot be found. This fixes issues where member warnings were being added to non-pages, e.g. the bbPress forums archive. To lock down "pages" like this, you'll need to use custom coding, URL detection, etc. Thanks, Scott Sousa (scottsousa on GitHub and WP.org) from Slocum Studio.
456
-
457
- = 1.7.1 =
458
- * Design updates to frontend and backend pages.
459
- * Added Sales and Revenue Report.
460
- * Fix to Braintree webhook that should help get it verified by Braintree more easily.
461
- * Fix to PayPal IPNHandler to check both that either the primary or the business email address sent from PayPal matches the one stored in the payment settings.
462
- * Added pmpro_ajax_timeout hook to change the timeout limit from 2000 (2 seconds) to something else.
463
- * Fixed bug that occurred when the pmpro_register_redirect filter returned false or a blank link. Thanks, Vladimir Garagulya.
464
- * Added pmpro_paypal_standard_nvpstr and pmpro_set_express_checkout_nvpstr filters to change or add parameters to an name-value-pair string sent to PayPal in a couple cases.
465
- * Fixed checkout failure on Free level when in mySQL Strict Mode. (Thanks, inator on GitHub)
466
- * Only checking pmpro_checkForUpgrades in admin/dashboard now. (Thanks, topdown on GitHub)
467
- * No longer loading recaptcha library in the admin. Also wrapped the recaptchalib require in an init function to delay it a bit so we can check if other plugins have already loaded it.
468
- * PMPro-Mailchimp and WP-Bouncer have been moved into the WP repository. Other Add-on updates.
469
- * New users will now be set to the "default role" set in the General settings instead of spefically "subscriber". (Subscriber is the default default role though.) Thanks, Nabil Kadimi.
470
- * Wrapped strings in login report for translation.
471
- * Added indexes to the following columns in the pmpro_membership_orders table: status, payment_transaction_id, subscription_transaction_id, affiliate_id, affiliate_subid
472
-
473
- = 1.7.0.4 =
474
- * Another database fix for new installs.
475
-
476
- = 1.7.0.3 =
477
- * Fixed a performance issue added in 1.7.0.2.
478
-
479
- = 1.7.0.2 =
480
- * Fixed HUGE issue with the DB setup on fresh 1.7+ installs. If you installed version 1.7 or 1.7.0.1 fresh (not upgraded from earlier version) then PMPro will not work until you upgrade to version 1.7.0.2.
481
- * Removed from old PHP short tag use
482
- * Fixed generation of members only and non-logged in text on new installs.
483
-
484
- = 1.7.0.1 =
485
- * Added the redirect away from wp-login.php page (was accidentally removed in version 1.7).
486
- * Added support for Theme My Login versions 6.3+
487
- * Fixed CSV downloads.
488
- * Fixed some warnings.
489
- * Fixed generation of cost text when using built in tax.
490
- * Added "pmpro_subscribe_order" filter.
491
- * Added an index to the user_id column of pmpro_memberships_users table which will help with performance of the new logins report and other user search functions.
492
-
493
- = 1.7 =
494
- * Ready for localization efforts.
495
- * Addons tab in PMPro Settings in the dashboard.
496
- * Reports page in dashboard with login report.
497
- * Webhook code for Braintree Payments gateway.
498
- * If PayPal Standard is the active gateway, users without membership levels will be able to see the confirmation page with a message that PayPal is processing payment.
499
- * Fixed bug where PayPal recurring orders were being attributed to the wrong user (if no subscriber id was attached to the IPN message).
500
- * Fixed bug where users sometimes couldn't checkout with a discount code that made a level free.
501
- * Cleaned up code in base paid-memberships-pro.php file.
502
- * Updated the .pmpro_checkout tr.odd td line in frontend.css to use rgba with alpha transparency to work a bit better on dark background themes.
503
- * Fixed bug where a user's first_name and last_name meta fields might be overwritten by the billing name fields at checkout. It will still set them if the user's first and last name fields are blank. (Thanks, John Hamlin.)
504
- * Fixed bug where zipcode was shown instead of state in the members list CSV export. (Thanks, John Hamlin.)
505
- * Fix to show discount codes on free trial confirmation emails if one was used.
506
- * Added the pmpro_random_code filter so you can hook in and change invoice code/etc generation.
507
- * Correctly padding zeroes on credit card expiration dates like 09/2013 when using Stripe. This SQL statement should fix broken entries in your orders table: NOTE (1) Backup your database first. NOTE (2) Make sure you change the table name to match your WP prefix,etc. >>> UPDATE wp_pmpro_membership_orders SET expirationyear = CONCAT(SUBSTRING(expirationmonth,2,1), expirationyear), expirationmonth= CONCAT('0', SUBSTRING(expirationmonth,1,1)) WHERE expirationmonth > 12;
508
- * Wrapped some AJAX and service calls code in init() functions so they will more consistently work with hooks/filters. (Before if PMPro loaded before a plugin or bit of code that added filters/etc, the filters wouldn't get applied.)
509
- * Fixed Stripe JS to also send city to Stripe. (This is important because Stripe doesn't seem to show the address at all if the city is missing.)
510
- * Added 'pmpro_members_list_sql' hook to filter the SQL used on the members list page and CSV export.
511
- * Added 'pmpro_members_list_csv_heading' and 'pmpro_members_list_csv_default_columns' hooks to filter the default columns in the members list CSV. (e.g. to check role and remove columns)
512
- * Added 'pmpro_members_list_user_link' hook to filter the link and username displayed on the members list page. (e.g. to check role and remove link to edit user)
513
- * Checking that "status='active'" when finding subscriptions to cancel when deleting a level. This will keep PMPro from trying to cancel someone more than once... or trying to cancel inactive subscriptions.
514
- * Fixed bug where Sales Tax fields were hidden on the payment settings page if Stripe was chosen as the gateway.
515
- * No longer logging IPN activity to logs/ipn.txt by default. (Uncomment the lines at the bottom of services/ipnhandler.php to use the log to debug.)
516
-
517
- = 1.6.1 =
518
- * Added recurring billing support to Payflow integration.
519
- * Fixed bug where an order's code was shown instead of the subscription ID on the edit order page.
520
- * Fixed some logic with determining if level settings are not compatible with the current gateway.
521
- * On notice and one DB query fix in upgradecheck.php submitted by pranjithkumar on GitHub. Thanks!
522
-
523
- = 1.6.0.1 =
524
- * Fixed Braintree integration for production environments. Braintree needed to be told "production" instead of "live".
525
- * Removed !!field!! lines from a couple of admin emails.
526
- * Added login_link as data for the cancel_admin email template.
527
-
528
- = 1.6 =
529
- * Added Braintree payments as a gateway option. This should be considered in "beta". Please get in touch if you are using Braintree payments with PMPro. Everything should function except that we're still working out an issue with the webhook handler.
530
- * Added a new dashboard page Orders to view all orders processed by PMPro with an option to export to CSV.
531
- * Fixed bug where "Your membership level has changed" emails were being sent out the first time a user's profile was edited, even if the level wasn't changing.
532
- * Removed the revenue estimate from the members list page. This causes performance issues on sites with many members. A new reports dashboard page is coming soon.
533
- * Not showing payment settings warning now when Payflow is setup with all values filled in.
534
- * Updated preheaders/billing.php to get the most recent successful order from the DB to use when updating. (ORDER BY id DESC in the query)
535
- * Added pmpro_stripe_subscription_deleted hook in stripe-webhook.php for when subscriptions are cancelled on the Stripe side. Use this code to cancel on your site as well: https://gist.github.com/strangerstudios/5093710
536
- * Now using $pmpro_currency_symbol when membership price is shown on the edit profile page in the dashboard/etc.
537
- * Added pmpro_authorizenet_post_url filter to use Authorize.net gateway class with a different post url, e.g. if you have a gateway that offers an Authorize.net compatibility mode.
538
- * Added pmpro_check_status_after_checkout filter so you can e.g. set the status to "pending" instead of "success" when a user checks out with the check gateway. They will still have access to the membership level, but you can update the status via the orders dashboard later.
539
- * Added pmpro_confirmation_order_status filter so you change which status the confirmation page looks for. Can return an array as well since the getLastMemberOrder method call on MemberOrder has been updated to support $status as an array.
540
- * Orders made via the check gateway now have PaymentType = "Check" and CardType = "".
541
- * Added a notes column to orders.
542
- * Fixed bug where discount codes were not showing up in checkout emails if the level was free.
543
- * Added some wpdb->escape() wrappers to the saveOrder method of MemberOrder which will fix some bugs with orders with fields with apostrophe's in them, etc.
544
- * Added checks for custom capabilities to the PMPro admin pages in case you want to give non-admins access. Caps are: pmpro_discountcodes, pmpro_emailsettings, pmpro_membershiplevels, pmpro_memberslist, pmpro_memberslist_csv, pmpro_orders, pmpro_orders_csv, pmpro_pagesettings, pmpro_paymentsettings
545
- * Added pmpro_memberslist_extra_cols_header and pmpro_memberslist_extra_cols_body hooks to add extra columns to the members list page.
546
- * Fixed pmpro_paypal_express_return_url_parameters filter to properly encode & and = so the params are properly added to the ReturnURL instead of being seen as extra params to the full PayPal Express URL. The PMPro Addon Packages plugin has been updated to take advantage of this to make that plugin more compatible with PayPal Express.
547
- * Fixed bugs with Strip webook: now listening for charge.succeeded and charge.failed, other fixes.
548
-
549
- = 1.5.9.2 =
550
- * Fixed Members List bugs introduced in version 1.5.9.1.
551
-
552
- = 1.5.9.1 =
553
- * Revamped the ipnhandler code. It's much cleaner now and should be easier to support with all 3 PayPal APIs (Standard, Website Payments Pro, Express) working through the one handler.
554
- * Added Payflow Pro as a gateway option. Currently, only one-time charges is supported.
555
- * Added the pmpro_register_redirect filter to allow you to change the URL PMPro redirects wp-login.php?action=register to. Returning false or an empty string will result in no redirect from the register page.
556
- * Added pmpro_subscription_payment_failed hook that runs if a failed payment comes in through the IPN Handler, Authorize.net silent post, or Stripe web hook. do_action("pmpro_subscription_payment_failed", $old_order); $old_order is a MemberOrder object.
557
-
558
- = 1.5.9 =
559
- * Fixed bug on Membership Billing page that was hiding the billing address fields.
560
- * Changed all of the instances of "firstpayment" order statuses to "success". Also running query to fix statues in the DB. This caused issues for levels with only a one-time payment, where the invoice wouldn't show up in their account page.
561
- * Fixed the PayPal Express gateway to correctly set the order transaction id to TRANSACTIONID instead of the PROFILEID.
562
- * Updated the IPN handlers to accept recurring_payment_id or subscr_id when checking for recurring payment orders.
563
- * Changed the site_url() in the javascript for discount codes on the checkout page to home_url(). home_url() is better to use in case users have their WP core files in a different directory.
564
- * You can now place email templates in a paid-memberships-pro/email folder in your theme and PMPro will use these before using the built in email templates. Just copy the file out of the wp-plugins/paid-memberships-pro/email folder, use the same filenames, and edit the file.
565
- * You can now place page templates in a paid-memberships-pro/pages folder in your theme and PMPro will use these before using the built in page templates. Just copy the file out of the wp-plugins/paid-memberships-pro/pages folder, use the same filename, and edit the file.
566
- * You can now place css templates in a paid-memberships-pro/css folder in your theme and PMPro will use these before using the built in page templates. Just copy the file out of the wp-plugins/paid-memberships-pro/css folder, use the same filename, and edit the file.
567
- * Fixed a bug where discount codes that reduced a level price to $0 were not being counted as "uses".
568
- * Added a pmpro_email_data filter to make it easier to add variables to edited email templates.
569
- * Added user_login to the data fields all of the emails for use by templates (use !!user_login!! in your template)
570
- * Added $wp_version to globals set in preheaders/checkout.php to properly compare versions later in the script and avoid a notice.
571
- * Added pmpro_email_filter hook to filter entire email object at once.
572
- * Warning fix: Updated email class to check if the template file exists before trying to load the template into the body. (Useful if you are using the PMProEmail class for your own emails.)
573
-
574
- = 1.5.8 =
575
- * Fixed bugs with the Membership Billing page. (Thanks, adambware)
576
- * The getMembershipLevelForUser function and getMembershipLevel method of the MemberOrders class will now include expiration_number and expiration_period properties on the returned level. These are needed to properly extend membership levels when checking out for the same level.
577
- * Added pmpro_before_send_to_paypal_standard hook. This is executed at checkout before calling the sendToPayPal method on the order. The register helper plugin has been updated to update user meta fields during this hook in addition to the pmpro_after_checkout hook. (Because for PayPal Standard, when pmpro_after_checkout is called, the $_SESSION vars are unavailable to it. So other plugins relying on the pmpro_after_checkout hook may have issues with PayPal Standard.)
578
- * Re-Added !class_exists("Stripe") check before loading Stripe library. This assumes that other plugins using the Stripe lib are loading compatible versions and/or also checking first before loading the Stripe lib. (*It's important that you test things if you are using multiple plugins loading Stripe. If the other plugins are loading old Stripe APIs first, PMPro may not work correctly.*) The alternative is to namespace the Stripe library for PMPro which would take some more effort.
579
- * Now running email subject lines through html_entity_decode to avoid special characters for apostrophes/etc.
580
- * pmpro_is_login_page() now also checks if is_page("login")
581
- * The pmpro_login_redirect and pmpro_besecure functions, which handle HTTP/HTTPS logic have been updated. pmpro_besecure is now running on login_init instead of login_head to avoid a "cannot resend headers" error. pmpro_login_redirect will strip https from the URL if FORCE_SSL_LOGIN is set but FORCE_SSL_ADMIN is not set to avoid "need to login twice" bugs.
582
- * Updated code to support auto-hiding ads with newer versions of Easy AdSense.
583
- * Updated how the members list CSV is generated to avoid PHP notices when meta values are not found/etc. Also added a prefix to the enclose function in memberslist-csv.php (enclose => pmpro_enclose).
584
- * Now using get_option("date_format") when outputing a date in the admin, frontend, or in an email.
585
- * Proper trial support for Stripe. (We use the trial_period_days parameter of the Stripe plan object to push the first payment back - since the first payment is handled in its own transaction. We now also add days to this based on the # of trial subscriptions set for the level in the admin.
586
- * Added a pmpro_require_billing javascript variable when using Stripe. If a discount code changes the membership level to free, pmpro_require_billing will be set to false and the Stripe JS checks won't fire.
587
-
588
- = 1.5.7 =
589
- * Ready for WordPress 3.5
590
- * Fixed issues in the PayPal IPN Handler that were leading to errors when users would checkout using the PayPal standard gateway.
591
-
592
- = 1.5.6.1 =
593
- * Fixed "invalid gateway" bug when using PayPal Express option with the PayPal/PayPalExpress gateway.
594
- * Fixed some warnings.
595
-
596
- = 1.5.6 =
597
- * Fixes in the new pmpro_getMemberStartdate and pmpro_getMemberDays functions.
598
- * Fixes to SQL queries for the expiration and trial ending crons.
599
- * Added a pmpro_required_user_fields filter similar to the pmpro_required_billing_fields filter.
600
- * Added a function pmpro_setMessage($message, $type) that sets $pmpro_msg and $pmpro_msgt globals if they aren't set already.
601
- * Added a function pmpro_getClassForField($field) that will return a string including "pmpro_error" or "pmpro_required" if applicable. You can filter the classes added to the fields via the pmpro_field_classes filter.
602
- * Showing * on required fields via javascript on the checkout page.
603
- * Updated checkout page to highlight in red fields that are related to the error message shown.
604
- * Added headers property to the PMProEmail object. You can add headers (e.g. to add a cc or bcc) to PMPro emails using the pmpro_email_headers filter.
605
- * Updated Stripe library to version 1.7.10. Updated PMPro to take advantage of new "interval_count" parameter in subscriptions, so you can now have subscriptions setup for "every 2 months", etc.
606
- * Fix to pmpro_checkout_start_date_keep_startdate filter added in 1.5.5
607
- * Added "Start Date" and "End Date" to emails sent to admins when a membership is cancelled.
608
- * Now checks for CSS files in a paid-memberships-pro subfolder of your active theme and uses those admin.css, frontend.css, and print.css files instead if they exist. (Going to move email and page template checks to that subfolder in the future as well.)
609
-
610
- = 1.5.5 =
611
- * Updated pmpro_check_site_url_for_https function to cache the siteurl to limit DB queries.
612
- * Added includes/filters.php to store hacks/filters/actions that were originally developed outside of the PMPro core and brought in later... or just things that are cleaner/easier to impement via hooks and filters.
613
- * Added a "delay" property to the membership shortcode. E.g. [membership level="1" delay="7"]...[/membership] will show that content if a member has had level 1 for at least 7 days.
614
- * If a member checks out for the same level again (extending their membership), the startdate added to pmpro_memberships_users will be their old startdate.
615
- * If a member checks out for the same level again, the remaining days on their existing membership will be added to their new enddate. So e.g. if a user starts an annual membership in April 2013, then checks out again (extends) their membership in February 2014, their new enddate will be April 2015 instead of February 2015. (NOTE: if you were doing this through the custom code here - https://gist.github.com/3678054 - you should remove your custom code.)
616
- * Fixed bug where you couldn't remove all required membership levels from a page/post. (Thanks, lisaleague)
617
- * Updated the button CSS included in paid-memberships-pro/css/frontend.css. I added a pmpro_ prefix to these classes so they don't conflict with other .btn CSS rules. I also changed the rules a bit to show the buttons more consistently. If you relied on the old CSS rules, you may need to tweak your theme to get things looking right.
618
-
619
- = 1.5.4 =
620
- * Added a gateway check to preheaders/checkout.php. Mischivous users used to be able to bypass payment by passing &gateway=check or something similar to the checkout page. PMPro would then use the check gateway to checkout. Now only the active gateway option in the payments settings or gateways added via the new pmpro_valid_gateways filter (1 parameter is the array of gateways, add/edit the gateways and return the array). It is important that all PMPro users upgrade to keep mischivious users from accessing your site for free. Any site currently enabling multiple gateway options will need to add code to set the valid gateways. More info here: http://www.paidmembershipspro.com/2012/06/offering-multiple-gateway-options-at-checkout/
621
- * Fixed bug where level restrictions would be deleted if a page were updated via quick edit.
622
- * Added if(!class_exists("Stripe")) to the Stripe class definition. This should help with some conflicts if other plugins have their own Stripe library. (Going to udate the Stripe library in the next version and work on supporting new Stripe functionality.)
623
- * Fixed a bug where copying a level didn't properly set recurring billing settings. (Thanks, AtheistsUnited)
624
- * Fixed some typos. (Thanks, AtheistsUnited)
625
- * Fixed some warnings.
626
-
627
- = 1.5.3.1 =
628
- * Fixed bug in expiration warning cron query. (Backported to 1.5.3)
629
-
630
- = 1.5.3 =
631
- * Added PayPal Standard Gateway
632
- * Added code to support using Stripe with the minimal billing fields. Use add_filter("pmpro_stripe_lite", "__return_true"); to enable this
633
- * Added an Email setting to send the default WordPress new user email(wp_new_user_notification) or not. By default this was being sent along with the PMPro checkout confirmation email. Now only the checkout confirmation email will be sent unless you check the new setting. You can still override this with the pmpro_wp_new_user_notification filter.
634
- * Fixed bug: Now re-hiding the "Processing..." message if there is a Stripe javascript error at checkout.
635
- * Updated MemberOrder method saveOrder to check for gateway and gateway_environment properties when inserting. If none are found, it will use what is set in your payment settings. This allows you to set the gateway on a MemberOrder object and save the order with that gateway instead of the default.
636
- * Now only showing the check instructions if the gateway is "check" AND the level is not free.
637
- * Added a check to the notification code in the settings header so it wouldn't display NULL in the notification space if WP passes that back.
638
- * Some warning fixes.
639
- * Fixed a bug in the PayPal Express gateway class where the pre-tax amount was being passed to PayPal instead of the tax-computed amount.
640
- * Added Canadian Dollars as a currency option for Stripe.
641
- * Fixed typo/bug with saving trial amounts in the memberships_users table after checkout. (Thanks, Badfun)
642
- * Fixed bug in initial and recurring revenue calculation on members list page.
643
- * Fixed bug when setting membership_level of current user after checkout that could cause various issues. (Thanks, drrobotnik)
644
- * Fixed bug in Stripe webhook that resulting in cancelation emails being sent to the 1st user in the DB vs. the user who cancelled. (Thanks, Kunjan of QuarkStudios.com)
645
- * The getLastMemberOrder() method of the MemberOrder class now returns the last order with status = 'success' by deafult. You can override this via the second parameter of the function. So getLastMemberOrder($user_id, "cancelled") to get the last cancelled order or getLastMemberOrder($user_id, false) to get the last order no matter the status.
646
- * Added pmpro_authnet_silent_post_fields filter and pmpro_before_authnet_silent_post and pmpro_after_authnet_silent_post hooks to the Authorize.net silent post handler. All hooks are passed the $fields variable built at the top of the script that mirrors the $_REQUEST array.
647
-
648
- = 1.5.2.1 =
649
- * Fixed bugs with pmpro_hasMembershipLevel.
650
- * Added ability to use the 0 level (non-member) in arrays passed to pmpro_hasMembershipLevel. e.g. pmpro_hasMembershipLevel(0,1,2) = has no membership, level 1, or level 2.
651
- * Fixed bug with the pmpro_after_change_membership_level hook, where a level object was passed instead of the id. The object would be nice to have, but we've been passing the id in the past. I changed it back for reverse compatibility. (You can always look up the level by level_id and user_id.
652
-
653
- = 1.5.2 =
654
- * Added "Pay by Check" as a gateway option. Users gain immediate access. You can show instructions for who to write the check out to, where to mail it, etc.
655
- * Added uninstall.php script. (Thanks, badfun)
656
- * Fixed bug where the "Use SSL" option reverted to "No" for Testing, Stripe, and PayPal Express gateways whenever the payments settings page was loaded.
657
- * Fixed bug where the IPN Handler URL was not showing up when PayPal Express was selected.
658
- * Fixed bug where PMPro was not sending the proper trial amount to PayPal when using Website Payments Pro or PayPal Express.
659
- * Added id and status fields to the pmpro_memberships_users table and updated all code to use these fields. This is important for allowing multiple membership levels and tracking cancelled orders. (Thanks, Zookatron!)
660
- * Appending ?level=# to the confirmation page URL after checkout to aid in analytics tracking.
661
- * No longer filtering pages/posts from search results if "show excerpts" is set to YES.
662
- * Showing tax on invoices if applicable.
663
- * Sending tax amount to PayPal Express again.
664
- * Added code to force HTTPS if the siteurl option starts with https:
665
- * Hiding billing information box on Membership Account page if the last invoice was by check or paypal express.
666
- * Added pmpro_email_days_til_expiration and pmpro_email_days_til_trial_end to change how many days before expiration/etc to send an email. The default is 7.
667
- * Fixed typo/bug in preheader/checkout.php RE the pmpro_stripe_verify_address hook. (Thanks, Oniiru!)
668
- * Updated the_excerpt filters to prevent PMPro messages from being added to an excerpt twice in some setups.
669
- * the_content filter removes any class="more-link" class from the content if showing an excerpt.
670
-
671
- = 1.5.1 =
672
- * Fixed bug in getfile.php introduced in 1.5.
673
- * Fixed bug in the saveOrder method of the Member Order class. When "updating" vs. "inserting" the $id property of the class was being wiped out. This sometimes caused problems if the id was needed later, e.g. with PayPal Express updating orders.
674
- * Now checking if(!defined("WP_USE_THEMES")) instead of if(function_exists("get_userdata")) to see if WP is already loaded.
675
- * Added initial payment to the fee column of the members list.
676
- * Added initial payment as a column in the members list CSV export.
677
- * Added the pmpro_members_list_csv_extra_columns filter to add columns to the Members List CSV export. Sample usage here: https://gist.github.com/3111715
678
-
679
- = 1.5 =
680
- * Very important security fix. Please upgrade to 1.5.
681
- * The Members List CSV export is now executed through admin-ajax.php and will only work if you are logged in as an admin (can manage options).
682
- * Fixed service scripts to work if logged in or logged out.
683
- * Changed the applydiscountcode service to going through the site_url() instead of admin-ajax.php to avoid HTTP/HTTPS issues.
684
-
685
- = 1.4.9 =
686
- * Important: Fixed handling of services sent through admin-ajax.php. Your silent post/ipnhandler URLs, etc, may have been updated.
687
- * Added stripslashes() to membership description output on the checkout page.
688
- * The pmpro_getLevel() function may return the wrong level on the levels, checkout, or account page where another $pmpro_levels array was setup. (The array pmpro_getLevel uses used the level id as the array keys. The older $pmpro_levels used 0-n.) To fix this, I added a pmpro_getAllLevels($include_hidden = false) function and now use that function on the levels, checkout, and account pages. The function queries the database for all levels and then puts them into an array where the level ids are the keys.
689
- * Fix for !!billing_country!! in emails. (Somehow a previous fix for this got overwritten. My bad.)
690
- * Settings $pmpro_level->code_id to $discount_code_id if a valid discount code is applied to a level at checkout. This is
691
- useful for determining if/what discount code was applied to the level when processing it in hooks.
692
- * Added pmpro_getDomainFromURL() and using that to set PMPRO_URL.
693
- * New hooks when orders are added/updated: pmpro_update_order (before update), pmpro_updated_order (after update), pmpro_add_order (before add), pmpro_added_order (after add). (Thanks, zookatron!)
694
-
695
- = 1.4.8 =
696
- * Fixed !!siteemail!! values for email templates.
697
- * Adjusted display of "processing" message next to checkout button when clicked.
698
- * Added billing_country to orders table in DB and the memberorder class. Handling countries better through the code.
699
- * Removing closing ?> at the bottom of various files while working through. This can avoid errors on some setups.
700
- * Using wp_enqueue_style to load plugin stylesheets now.
701
- * Added the pmpro_getCheckoutButton($level_id, $button_text, $classes) function and [pmpro_button level="1"] shortcode to add buttons with links to more easily level checkout pages into your pages and themes. Copied over btn and btn-primary styles from Member Lite theme.
702
- * Updated include/require statements to work if the wp-content folder has been renamed or moved.
703
- * Added code to load scripts in the services folder via admin-ajax.php. (Helps when the plugins folder is not where PMPro expects it to be.)
704
- * The discount code AJAX call is using the new service URL (/wp-admin/admin-ajax.php?action=applydiscountcode).
705
- * Added IPN/Silent Post/Webhook instructions to payment settings page.
706
-
707
- = 1.4.7 =
708
- * Fixed some notices in the PayPal gateway code.
709
- * No longer calling Stripe JS at checkout if the level is free.
710
- * Fixed some HTTPS handling for ISS hosting. (IIS sets $_SERVER['HTTPS'] to "off" or "on" instead of TRUE or FALSE.)
711
- * Added #pmpro_processing_message to checkout page which is shown when the submit button is clicked. You can override the message with the pmpro_processing_message filter. You can tweak the CSS to show this differently as well.
712
-
713
- = 1.4.6 =
714
- * No longer trying to setup a subscription with Stripe for levels with only an Initial Payment amount.
715
- * Updated recaptchalib.php, which fixes issues with using recaptcha.
716
- * Now setting the first_name and last_name meta fields at checkout to match the business first and last name. (Previous scripts to add additional first/last names to the checkout field should override these.)
717
- * Updated the save profile code to only null out the expiration date for a membership if a blank expiration is explicitly passed through the form. If you had other plugins allowing users to edit their profile, etc, it might not have been passing the expiration date and thus updating users expiration dates. Admins and users would have gotten emails.
718
- * Some updates to applydiscountcodes.php service to support plugging into how discount codes function. Added the pmpro_discount_code_level filter to applydiscountcodes.php.
719
-
720
- = 1.4.5.1 =
721
- * Removed debug calls to krumo() which would cause fatal errors in certain situations. Please upgrade. (Note that PMPro versions that go three dots deep are usually the most important ones :)
722
-
723
- = 1.4.5 =
724
- * Now setting a var "code_level" in javascript in applydiscountcode.php so it can be used to manipulate prices, etc after applying a discount code.
725
- * Added the pmpro_cancel_previous_subscriptions filter, which is set to false will skip cancelling the old membership level/subscription at checkout. This is dangerous, but is used by the pmpro-addon-packages plugin to have an addon charge without affecting the old subscription. This works because the user is checking out for the same membership level. (So they don't really have > 1 membership level.)
726
- * Trimming strings sent to the Authorize.net API in the subscribe and update calls.
727
-
728
- = 1.4.4 =
729
- * Using get_admin_url instead of home_url in various places so the links will work on sites installed in a subdirectory. (Notifications, admin bar, pagination in admin screens, etc.)
730
- * Wrapping some XML fields in Authorize.net API calls in <![CDATA[ ]]> to avoid issues when non-text characters (e.g. &) are included in the level name, etc.
731
-
732
- = 1.4.3 =
733
- * Fixed a bunch of notices and warnings on discount codes page in admin.
734
- * Added hooks for changing the discount code page: pmpro_save_discount_code_level, pmpro_save_discount_code, pmpro_discount_code_after_settings, pmpro_discount_code_after_level_settings. Look them up in discountcodes.php to see how they work.
735
- * Updated pmpro_send_html(), which filters emails, to use wpautop instead of nl2br. This will fix any extra double spacing you may have noticed in your emails.
736
- * Added a stripslashes around the membership level confirmation text on the confirmation page. Extra slashes were breaking links, etc.
737
- * Added membership level to subject of checkout confirmation email sent to admins.
738
-
739
- = 1.4.2 =
740
- * Fixed bug that was added slashes into a level's description and confirmation when saving.
741
- * Removed wp_editor use is the blog is running a version of WordPress < 3.3. (Note: We will only officially support the latest version of WordPress with each release.)
742
- * Added the pmpro_pages_shortcode_{membership page} filter. This can be used to filter the content output by the pmpro_checkout and other page shortcodes. e.g. use pmpro_pages_shortcode_checkout to tweak the HTML output of the pmpro_checkout shortcode. The pages are "account", "billing", "cancel", "checkout", "confirmation", and "levels".
743
- * Added a "use_ssl" option. For the PayPal Website Payments Pro and Authorize.net gateways, this must be on. For Stripe, this will default to on, but can be switched off. For PayPal Express and the test gateway, it will default to off but can be switched on. When on, the checkout and update billing pages will be forced to be served over SSL. If off, those pages will redirect to non-ssl versions. The previous hooks/filters for overriding this will still work.
744
- * Added pmpro_save_membership_level and pmpro_membership_level_after_other_settings hooks to be able to add fields to the new/edit membership level page.
745
- * Fixed some more warnings and notices.
746
- * Updated checkout page to use pmpro_isLevelFree() in logic to display recaptcha or not.
747
-
748
- = 1.4.1 =
749
- * Fixed critical bugs with PayPal Express.
750
- * When a PayPal cancellation returns error "11556" (The subscription must have status "active" or "suspended".) I am cancelling the membership without an error. Most likely the PayPal subscription was already cancelled on the PayPal side.
751
- * No longer trying to cancel a subscription with the gateway if a membership/order doesn't have a subscription_transaction_id. (It was a initial payment only membership probably.)
752
-
753
- = 1.4 =
754
- * Rewrote how gateways are handled to make it easier to add and manage new gateway options.
755
- * Added Stripe as a gateway option. (http://www.stripe.com)
756
- * Added a "confirmation message" field to the level editor that is shown on the confirmation page after checking out. The message is added to the text that can be filtered using the pmpro_confirmation_message hook.
757
- * Now applying "the_content" filters on the confirmation message on the confirmation page. e.g. wpautop will be run on the text to automatically add paragraphs.
758
- * Now showing the level description on the checkout page. You can use this code to remove the description from the checkout page: https://gist.github.com/2323424
759
- * The description and confirmation fields of the membership level editor now use WP Editor fields with full WYSIWYG support.
760
- * Fixed the logic around setting the $pmpro_display_ads global, used by the pmpro_displayAds() and pmpro_hideAds() functions.
761
- * Fixed bug with recaptcha logic.
762
- * Updated /pages/checkout.php to use wp_login_url function for login link.
763
- * Small changes to pmpro_changeMembershipLevel function to support deleting users when they cancel their account.
764
- * Added the pmpro_member_links_top and pmpro_member_links_bottom hooks so you can add links to the "Member Links" list of the account page. Just output an a tag wrapped in a li tag. (May tweak this to build an array of links that can be filters, but this is good for now.)
765
- * Fixed some more notices.
766
-
767
- = 1.3.19 =
768
- * Rewrote the pmpro_login_redirect function. It's cleaner now. Important: there was a pmpro_login_redirect hook in there that was fairly redundant with the core login_redirect hook. I've renamed the pmpro hook to pmpro_login_redirect_to because I had a hook with the same name (pmpro_login_redirect) used in a different place to control whether or not PMPro redirects the register page to the levels page. Having one hook for two things is a bad idea. It seems like more people were using the hook for controlling the registration redirect, so I left that one alone and renamed these.
769
- * Changed PMPro page creation to set all membership pages as subpages of the membership account page. This results in nicer menus for themes that add all top level pages to the menu.
770
- * Updated the checkout page to submit to "" (itself) instead of echoing the checkout page URL here. (Since we can have multiple checkout pages.) This also fixes from SSL conflicts that may crop up on the checkout page.
771
- * Updated the priority of a few actions/hooks so the "besecure" https stuff gets run as soon as possible. Before it was possible that some URLs could be written out with http: on an HTTPS page before PMPro had a chance to fix things. You should have fewer SSL errors on the checkout page to deal with now.
772
- * Added an option on the payment settings page to "nuke" http: links on all secure pages. This option can add time to your page loads, but will ensure that all http: links for your domain are replaced with https: links.
773
- * Allowing multiple pages to use the [pmpro_checkout] shortcode so you can create multiple checkout pages. This is good if you want a separate templated checkout page for each membership level or product you have.
774
- * You can now add a pmpro_default_level custom field, set to the id # of the level you want, that will be used if you navigate directly to a checkout page without setting a level.
775
- * Added some stuff to support adding shipping fields via hooks. Add this plugin to your site, edit, and activate to add shipping to your checkout: https://gist.github.com/1894897
776
- * Removed the price from the description sent to PayPal. The DESC field is limited to 127 characters and must match up across API calls. So there is a good chance the price would get truncated which could be confusing. This was a kind of hack anyway. PayPal should show the price data it has. Not sure why it won't. The price is still reviewed on the review page of your site though.
777
- * The recaptcha code now checks for a previous error before changing pmpro_msg to "All Good".
778
- * Fixed warning in pmpro_has_membership_access(). Fixed a bunch of other warnings here and there.
779
- * Rewrote pmpro_updateMembershipCategories() just to be cleaner
780
- * Added pmpro_state_dropdowns filter. If you return true, the state field will become a dropdown with US states. Use the pmpro_states and pmpro_states_abbreviations filters to change the array of states used.
781
-
782
- = 1.3.18.1 =
783
- * Added the new email .html templates to svn.
784
-
785
- = 1.3.18 =
786
- * Fixed some warnings: admin bar warning that showed up on admin pages; warning issued by pmpro_setOption(); warning in pmpro_hasMembershipLevel(); warning in billing update; warnings on the user edit page; warnings in the getTax method of the order class; warnings in save method of order class.
787
- * Added a pmpro_checkout_confirm_email filter that can return false to hide and not require the "Confirm E-mail" field at checkout.
788
- * Added a pmpro_checkout_confirm_password filter that can return false to hide and not require the "Confirm Password" field at checkout.
789
- * If the PMPRO_DEFAULT_LEVEL constant is set, traffic on the levels page is redirected to the checkout page. This redirect no longer forces HTTPS.
790
- * Moved the pmpro_paypalexpress_session_vars hook call so it will run even if existing users are checking out (upgrades, etc).
791
- * Added some confirmation emails for admins: (1) for new user signups, (2) when an admin changes a member's level, (3) when a user cancel's their membership, and (4) when a user update's their billing information. New email templates (ending with "_admin.html") have been added to the /email/ folder of the plugin.
792
- * Added new email settings to enable/disable the new admin emails. They will be enabled by default on install and upgrade to 1.3.18. The settings are on the email tab of the PMPro settings.
793
- * Added a couple hooks to the checkout page to have more control over where you add fields, etc. pmpro_checkout_before_submit_button and pmpro_checkout_after_billing_fields.
794
-
795
- = 1.3.17.1 =
796
- * Fixing activation bug from 1.3.17.
797
-
798
- = 1.3.17 =
799
- * Updated pmpro_hasMembershipLevel() and [membership] shortcode to allow passing a level like "-5" which will return true if the user does NOT have level #5.
800
- * Updated how PMPro notifications are retrieved and shown on the PMPro admin pages. We're using admin-ajax to call the pmpro_notifications function which uses WP's HTTP API to call the www.paidmembershipspro.com server. Only the PMPro version number is passed to check if a notification should be shown. This method shouldn't slow page load since the javascript is called using jQuery's ready function. If the PMPro server is unavailable, you'll get a JS error instead of a PHP one.
801
- * Fixed warning on discount codes page. Fixed some other warnings.
802
- * Updated expiration/trial crons to avoid blank ('') and zero ('0000-00-00 00:00:00') DB values in addition to NULLs. (Some backup programs will incorrectly export NULL dates as '' which could be interpretted as 1/1/1970... meaning the membership has expired.)
803
- * Fixed bug where "Billing Information" was shown on the account page for some free levels.
804
-
805
- = 1.3.16 =
806
- * Moved the SSL Seal box lower on the payment settings page.
807
- * Made dashboard menu and admin bar menus consistent.
808
- * Fixed bug with selecting categories when adding a new level.
809
- * Fixed bug where the user was sometimes redirected to the add level page after adding a level.
810
-
811
- = 1.3.15 =
812
- * Fixed SSL handling on the billing page for members without an order.
813
- * Removed single quotes from shortcode examples on page settings page. Doh! (Thanks, Caps)
814
- * Added Multisite/Network FAQ item.
815
- * Updated the payments settings page to convert tax rates like 7 into 0.07. (Tax rates > 1 are divided by 100.)
816
-
817
- = 1.3.14 =
818
- * Added pmpro_show_cvv filter to hide the CVV from the checkout and billing information pages.
819
- * Updated the billing page to use the pmpro_required_billing_fields like the checkout page does.
820
- * Updated the Authorize.net integration to not pass an empty CVV if the value is empty. Authorize.net will still throw an error if you require CVV via your gateway settings. If you update your settings and PMpro to not require a CVV, you won't get an error.
821
- * Passing the level cost to PayPal Express through the description.
822
- * The billing page doesn't require SSL now if the gateway for the order was PayPal Express. A link to PayPal is shown instead of the form. (Be sure to remove the "becesure" custom field from your billing page if it has one and you don't want this page served over SSL.)
823
- * Fixed bug where the membership level name wasn't being passed to Authorize.net in the description field for the order.
824
- * Added a second paramter ($tags = true) to the pmpro_getLevelCost function. If this is false, strip_tags is run on the cost before returning it. (By default we wrap the prices in <strong> tags which is not good for passing to PayPal for example.)
825
- * Some bug fixes for updating billing against Authorize.net.
826
-
827
- = 1.3.13 =
828
- * Fixed warning on checkout page. (Thanks Caps!)
829
- * Fixed bug in PayPal Express checkout that resulted in trying to load the confirmation page over SSL (which would break on some servers). (Thanks Caps!)
830
- * Updated getTaxFromPrice method of order class to allow for better filtering, by level, etc. The pmpro_tax filter now passes the $tax amount, $values (array with price passed and other values), and $this (the order object). It's a little clunky, but must be for backwards compatibility. Custom tax example here: http://www.paidmembershipspro.com/2012/02/custom-tax-structure-using-the-pmpro_tax-hook/
831
- * Removed all TAXAMT NVP parameters in PayPal Express calls. Including these would sometimes introduce errors during checkout. The tax amount is still included in the total amounts passed. Not sure what impact dropping the TAXAMT property will have on reporting in PayPal. I don't believe their tax reporting is the best anyway. Maybe we can build a tax report into PMPro.
832
-
833
- = 1.3.12 =
834
- * Fixed bug in members list pagination on sites installed in a subdirectory.
835
- * Now swapping out the PayPal Express checkout button if the level is free or becomes free with a discount code. (Thanks, Caps!)
836
-
837
- = 1.3.11 =
838
- * Fixed bug with cancelling a user's membership through the admin.
839
-
840
- = 1.3.10 =
841
- * Fixed the links in the discount code table.
842
- * pmpro_hasMembershipLevel(0) and [membership level="0"] will once again return true for non-members. (This broke whent he pmpro_has_membership_level filter was added.)
843
- * WP 3.3.1 testing. (Looks good!)
844
-
845
- = 1.3.9 =
846
- * Added a "pmpro_has_membership_level" filter ($r = apply_filters("pmpro_has_membership_level", $r, $user_id, $levels);) which can be used to override the default behavior here.
847
- * Fixed the pmpro shortcodes to allow content above and below the shortcodes on the membership pages. (Thanks, Bluewind!)
848
- * Now setting the user's first and last name to the billing first and last name after checkout.
849
- * Added billing first/last name, billing address, and phone number to the members list screen and CSV export.
850
- * Removed email header/footer code from email class because sometimes it was added twice. Now it is added by the pmpro_send_html function in paid-memberships-pro.php for all emails (WP or PMPro) if a header or footer file are found in your theme folder.
851
- * Added a pmpro_after_phpmailer_init. (The old hook pmpro_after_pmpmailer_init had a typo -- pmpmailer instead of phpmailer.) I left the old hook in for backwards compatibility.
852
-
853
- = 1.3.8 =
854
- * Fixed a bug with canceling memberships. Important Note: User requested cancellations were not being forwarded to PayPal and Authorize.net in the past couple updates. Please double check your members lists with your payment gateway subscriptions. Sorry for the inconvenience.
855
- * Fixed a bug in the billing update form.
856
- * Wrapped some output on the billing update form in esc_attr.
857
- * Now sorting countries alphabetically if international orders are turned on.
858
- * Updated the membership-billing page to show country and long form fields if enabled via the hooks pmpro_international_addresses and pmpro_longform_address. (These were only showing up on the checkout form before.)
859
-
860
- = 1.3.7 =
861
- * Added "expiration" field to user profile page. Updated the email class to include information on expiration dates in the admin change emails.
862
- * Added "pmpro_profile_show_membership_level" and "pmpro_profile_show_expiration" filters which will hide those fields from the edit profile screen if false is returned.
863
- * Added a pmpro_getMembershipLevelForUser($user_id) function and replaced some redundant code in a few places where we query the DB for this. Maybe we'll have a membership level class as some point. Makes sense now.
864
- * Fixed bug where the wrong price for levels was showing up on the edit profile page in the admin. (It would show the current user's level info instead of the edited user's info.)
865
- * Cleaned up a few more warnings, etc.
866
-
867
- = 1.3.6 =
868
- * Changed a few split() calls to explode() to avoid warnings.
869
- * Fixed a couple other warnings/notifices.
870
- * Updated account page to hide the change billing info link if the user doesn't have an active subscription or signed up with PayPal Express.
871
- * Added a filter pmpro_paypal_express_return_url_parameters which can be used to add parameters to the ReturnURL when checking out with PayPal Express. Return an array of key, value pairs. { return array("option" => "1"); }
872
-
873
- = 1.3.5 =
874
- * Important update to Authorize.net processing code to account for the "credit card expires before the start of this subscription" error that comes up. For levels/discount codes with no trials or only free trials/initial payments, the subscription setup with Authorize.net starts the day of checkout and a free trial is tacked on for 1 period vs. setting up the subscription one period out. One period is added to the billing limit as well, if applicable. Check the blog for more information.
875
- * Important update for PayPal Website Payments Pro users. When using PayPal WPP, the user will have an option to checkout via PayPal Express as well. PayPal requires this and now we support it.
876
-
877
- = 1.3.4 =
878
- * Swapped the $ in the levels page code for $pmpro_currency_symbol.
879
- * Changed the membership shortcode to apply the_content filters to the return value instead of just wpautop. This allows shortcodes within that shortcode and other filters to be run on the content. (Let me know if issues arrise from this.)
880
- * Wrapped some post variables in checkout and billing preheaders with trim()
881
- * Now voiding authorizations with Authorize.net. (The plugin will authorize $1 before setting up a subscription without an initial payment.)
882
- * Now voiding an initial payment with Authorize.net if the subscription setup fails.
883
- * Now refunding an intial payment with PayPal if the subscription setup fails.
884
- * Added a "pmpro_checkout_after_level_cost" to add fields or arbitrary code after the level cost description on the checkout page.
885
- * Added Diner's Club, EnRoute, and JCB as credit card options. Make sure you congiture your Gateway/Merchant account to accept these card types as well.
886
-
887
- = 1.3.3 =
888
- * Fixed bug where country field was resetting to default when there were errors with the checkout form submission. (If you templatized your checkout page and have international addresses enabled, you will need to add $bcountry to the globals setup at the top of your checkout template .php)
889
-
890
- = 1.3.2 =
891
- * Fixed issue introduced in 1.3.1 where checkout page would not redirect to HTTPS when it should have.
892
- * Fixing issues with slashes in addresses/etc in the checkout form.
893
- * Updated the PMProEmail class to use the wp_mail function instead of use PHPMailer directly. (Thanks VadaPrime: http://wordpress.org/support/topic/plugin-paid-memberships-pro-wp_mail?replies=6#post-2449672)
894
- * Fixed some more notices and warnings.
895
-
896
- = 1.3.1 =
897
- * Fixed automatic page creation, which broke in the last update.
898
- * Added hook pmpro_checkout_level which allows you to tweak the $level object before checkout, e.g. to change pricing for upgrades.
899
- * Added hook pmpro_checkout_start_date which allows you to change the start date of a membership before checkout. (preheaders/checkout.php)
900
- * Added hook pmpro_profile_start_date which allows you to change the start date of a membership that is sent to the gateway. (classes/class.memberorder.php)
901
- * Cleaned up some notices and warnings. Will hopefully finish the remaining ones next update.
902
- * Removed some old tinyMCE code that wasn't in use anymore. FYI, WP 3.3 will have a way to include visual editors on other pages, so we may add it to the description field of the membership levels.
903
- * Updated order class to send phone and email to Authorize.net when creating subscriptions. The charge/authorize API support international phone numbers, but the ARB API does not. So if a customer enters an international phone number (or other phone number over 10 characters), the number will be sent for any initial payment/charge, but not for the subscription setup.
904
- * Fixed where !!discount_code!! was not being parsed out in emails.
905
-
906
- = 1.3 =
907
- * Added a filter pmpro_login_redirect. You can return false to allow users to signup via the default WP login page.
908
- * Member CSV export no longer limiting to 15 members.
909
- * Correctly adding code_id to the pmpro_memberships_users table on signup. View here for retroactively updating your users tables in case you intend to use that value for advanced functionality.
910
- * Changed URL to send IPN checks for live PayPal instances from www.live.paypal.com to www.paypal.com.
911
- * Updated getfile.php to work when WP is installed in a subdomain.
912
- * Added links to individual settings tabs in the WP menu.
913
- * Changed the architecture of the settings pages which used to all be coded in the membershiplevels.php page. Each settings page has its own script now. I removed the pmpro-data.php service and have the pages submit to themselves now. This won't impact how things work, but will make it easier for me to develop going forward.
914
-
915
- = 1.2.10 =
916
- * Added pmpro_confirmation_message hook to change the output on the confirmation page without having to templatize it. The filter passes the constructed html string with the confirmation message and a second parameter containing the order/invoice object if it is a paid membership.
917
- * Added a pmpro_checkout_boxes hook that can be used to output extra fields and other content in the middle of the checkout page.
918
- * Now showing 2 decimals places for the tax rate when showing a membership level's cost.
919
-
920
- = 1.2.9 =
921
- * IMPORTANT fix so new user email addresses are properly captured when using PayPal Express.
922
- * rewrote the IPN handler to use the WordPress HTTP API for better compatibility.
923
- * added extra id to tables and fields for easier styling. (let me know if you have suggestions for small changes like these that can save you from having to templatize a page)
924
- * fixed query in readiness check function.
925
- * Authorize.net doesn't support international phone numbers, so we're not sending them to Authorize.net anymore.
926
-
927
- = 1.2.8 =
928
- * Ordering levels by id (ascending) on the levels page now. Added a "pmpro_levels_array" filter that can be used to reorder the levels or alter the levels before displaying them on the levels page. The array of levels is the only parameter.
929
- * Added expiration date to the member list and export.
930
- * Showing a member count on the member list page.
931
- * Added filter to change subject lines for PMPro emails. (pmpro_email_subject) The filter's first paramter is the subject, the second parameter is an object containg all of the email information. There are also filters for pmpro_email_recipient, pmpro_email_sender, pmpro_email_sender_name, pmpro_email_template, amd pmpro_email_body.
932
- * Added an RSS feed from the PMPro blog to the dashboard.
933
- * Now only showing the discount code field at checkout if there are discount codes in the database. Can be overriden by the pmpro_show_discount_code filter.
934
- * Cancelling with PayPal now properly updates status to "cancelled".
935
- * No longer trying to unsubscribe from PayPal or Authorize.net if there is no subscription ID to check against (e.g. when the user was manually added to a membership level) or if the last order does not have "success" status (e.g. they already cancelled).
936
- * Removed PHP short tags (e.g., <?=$variable?>) for wider compatibility.
937
-
938
- = 1.2.7 =
939
- * Fixed bug with non-USD currencies.
940
- * Fixed bug with phone number formatting.
941
-
942
- = 1.2.6 =
943
- * Fixed bug with discount codes showing up in emails, confirmation pages, and invoices.
944
- * Added currency option to gateway settings.
945
-
946
- = 1.2.5 =
947
- * PayPal Express support! PayPal Express requires just a verified PayPal Business account (no monthly fees from PayPal).
948
- * Fixed a bug when plans with a "cycle number"/billing frequency that was greater than 1 (e.g. every 4 months). Before the first payment was being scheduled 1 day/month ext out instead of e.g. 4 months out... resulting in an extra payment.
949
- * Added some hooks to support international orders: pmpro_international_addresses, pmpro_default_country, pmpro_countries, pmpro_required_billing_fields. Example code to support international credit cards: https://gist.github.com/1212479
950
-
951
- = 1.2.4 =
952
- * VERY IMPORTANT BUG FIX: The getMembershipLevel function of the MemberOrder class had an error where the membership level object was not being created properly during signup and so * recurring subscriptions were not being created *. This update fixes the bug. Thanks to mvp29 for catching this.
953
- * Fixed another bug that was causing warnings on some setups, e.g. WAMP server for Windows.
954
- * Fixed a bug that would show warnings when visiting a login page over HTTPS.
955
- * Fixed membership pricing wording for certain cases, e.g. every 4 months for 4 more payments.
956
- * Fixed a bug in the email generation for order confirmations when discount codes were used. This will no longer freeze the screen.
957
-
958
- = 1.2.3 =
959
- * Fixed an error in the DB upgrade code that was keeping the "enddate" from being added to new members' records.
960
-
961
- = 1.2.2 =
962
- * Added pmpro_skip_account_fields hook. This value is used to determine if the username/password accounts fields should show up at checkout. By default, it is shown when the user is logged out and not shown when logged in. The hook allows you to return true or false to override this behavior. If the fields are skipped while no user is logged in a username and password will be automatically generated for the new user after checkout.
963
- * You can delete discount codes now from the admin.
964
- * Added a hook pmpro_level_cost_text to allow you to override how the cost is shown on the checkout page. Obviously don't abuse this by showing a different price than what will be charged. Be careful if you change your membership levels pricing to update your filter if needed. The hook passes the text generated by the pmpro_getLevelCost(&$level) function and also a level object which is prepopulated with levels pricing and expiration settings already adjusted for any discount codes that may be in affect.
965
- * Added expiration settings for levels. You can set an "expiration number" and "expiration period" for any level now. e.g. "6 months" or "180 days". You can also alter expiration settings via discount codes. Expirations will be useful for offering free trials which don't require a credit card... and other scenarios you guys have come up with. A script is run once a day using WP Cron that checks for any membership that has ended and then cancels that membership. The user will lose access and the subscription setup in your payment gateway will be canceled.
966
- * Users can "extend" a membership that is set to expire via the Membership Account page.
967
- * Added a hook pmpro_level_expiration_text to allow you to override how the expiration information is shown on the levels and checkout pages. Again don't abuse this by showing a different expiration than is real. Be careful if you change your expiration settings to update your filter if needed. The hook passes the text generated by the pmpro_getLevelExpiration(&$level) function and also a level object which is prepopulated with levels pricing and expiration settings already adjusted for any discount codes that may be in affect.
968
- * Added an error check if the MySQL insertion of the membership level fails. This happens after the user's credit card/etc has already been charged. The plugin tries to cancel the order just made, but might fail. The user is adviced to contact the site owner instead of trying again. I don't want to scare you. We test the checkout process a lot. So assuming that the code hasn't been tampered with and there isn't an internet outage in the microseconds between the order going through and the database being updates, you should never run into this. Still it's nice to have, just in case.
969
- * Fixed a bug that may have caused the billing amount to show up incorrectly on the Membership Account page.
970
- * Added the discount code used to the confirmation page, invoices, and invoice emails.
971
- * Now sending notification emails to members 1 week before their trial period ends (if applicable). A WP cron job is setup on plugin activation. You can disable the email via the pmpro_send_trial_ending_email hook.
972
- * Now sending notification emails to members 1 week before their membership expires (if applicable). A WP cron job is setup on plugin activation. You can disable the email via the pmpro_send_expiration_warning_email hook.
973
- * An email is sent when a membership expires. A WP cron job is setup on plugin activation. You can disable the email via the pmpro_send_expiration_email hook.
974
- * Note: Right now users cannot "extend" a membership that is about to expire without first canceling their current membership. I plan to add "membership extensions" for these cases, but it's a little complicated and I didn't want to hold up this release for them. So Real Soon Now.
975
-
976
- = 1.2.1 =
977
- * Fixed bug where non-member admins would be redirected away from the "All Pages" page in the admin.
978
-
979
- = 1.2 =
980
- * Fixing some wonkiness with the 1.1.15 update.
981
- * Fixed "warning" showing up on discount code pages.
982
- * Tweaked the admin pages a bit for consistency.
983
- * Added screenshots and FAQ to the readme.
984
- * Figured we were due for a bigger version step.
985
-
986
- = 1.1.15 =
987
- * Discount Codes Added!
988
- * Removed some redundant files that slipped into the services folder.
989
- * Fixed the !!levels!! variable for message settings of the advanced tab.
990
- * Changing some ids columns in tables to unsigned.
991
-
992
- = 1.1.14 =
993
- * Now encoding #'s when sending info via Authorize.net's API. This may prevent some address conflicts.
994
-
995
- = 1.1.13 =
996
- * No longer adding "besecure" custom field to the billing and checkout pages. You can still add this manually to selectively require SSL on a page. If you are trying to do a free membership without SSL, you will have to make sure the besecure custom field is deleted from the Membership-Checkout page, especially if you are upgrading from an older version of PMPro.
997
- * Added a filter before sending the default WP welcome notification email. Return false for the "pmpro_wp_new_user_notification" hook/filter to skip sending the WP default welcome email (because in many cases they are already getting an email from PMPro as well).
998
-
999
- = 1.1.12 =
1000
- * Revenue report on members list page. (Rought estimate only that doesn't take into account trial periods and billing limits.)
1001
- * Enabling weekly recurring payments for Authorize.net by converting week period to 7 days * # months.
1002
- * Improved error handling on checkout page.
1003
- * Now running "pmpro_after_change_membership_level" actions after the "pmpro_after_checkout" action. Previously this hook was only called when a membership level was changed via the WP admin.
1004
- * Won't complain about setting up a Payment Gateway if you only have free membership levels.
1005
- * The "besecure" custom field is not added to the billing or checkout by default anymore when you run the "create the pages for me" option in the settings. Whether or not to use HTTPS on a page is now handled in the preheader files for each page (see below).
1006
- * The plugin won't force SSL on the checkout page anymore unless the membership level requires payment. If your checkout page is still running over HTTPS/SSL for free membership checkouts, make sure the "besecure" custom field has been deleted on your checkout page. You can use the "besecure" custom field or the "pmpro_besecure" filter to override the plugin's decision.
1007
- * The plugin won't force SSL on the cancel page anymore. Again, you can override this using the "besecure" custom field or the "pmpro_besecure" filter.
1008
-
1009
- = 1.1.11 =
1010
- * Removed some debug code from the invoice page that might have shown on error.
1011
- * Added check to recaptcha library code incase it is already installed. (Let's hope other plugin developers are doing the same.)
1012
- * Removed the TinyMCE editor from the description field on the edit membership level page. It was a little buggy. Might bring it back later.
1013
-
1014
- = 1.1.10 =
1015
- * added a hook/filter "pmpro_rss_text_filter"
1016
- * added a hook/filter "pmpro_non_member_text_filter"
1017
- * added a hook/filter "pmpro_not_logged_in_text_filter"
1018
- * adjusted the pmpro_has_membership_access() function
1019
- * added a hook/filter "pmpro_has_membership_access_filter"
1020
- * updated the hook/filter "pmpro_has_membership_access_filter_{post-type}"
1021
- * removed the "pmpro_has_membership_access_action_{post-type}" hook/action
1022
- * update invoice page to handle case where no invoice is found
1023
-
1024
- = 1.1.9 =
1025
- * You can now set individual posts to require membership without assigning them to a category.
1026
- * Fixed bug with the confirmation email during signup.
1027
- * Fixed a CSS bug on the cancel membership page.
1028
-
1029
- = 1.1.8 =
1030
- * Fix for login/registration URL rerouting.
1031
- * Added members list to admin bar menu.
1032
- * Added warning/error when trying to checkout before the payment gateway is setup.
1033
- * Fixed some error handling in the order class.
1034
- * Fixed a bug that occurred when processing amounts less than $1.
1035
-
1036
- = 1.1.7 =
1037
- * Fixed bugs with http to https redirects and visa versa.
1038
- * Fixed redirect bugs for sites installed in a subdomain.
1039
-
1040
- = 1.1.6 =
1041
- * Fixed MySQL bug showing up on some users add membership level page.
1042
-
1043
- = 1.1.5 =
1044
- * Required fix for PayPal Website Payments Pro processing. Please update.
1045
- * Fixed bug with pagination on members list.
1046
- * Fixed bugs with errors thrown by MemberOrder class.
1047
- * Updated login/registration URL rerouting.
1048
-
1049
- = 1.1.4 =
1050
- * Custom Post Types default to allowing access
1051
- * Fixed login_redirect code.
1052
- * Added pmpro_login_redirect filter for when members login.
1053
-
1054
- = 1.1.3 =
1055
- * Getting ready for the WP plugin repository
1056
- * License text update.
1057
-
1058
- = 1.1.2 =
1059
- * Added hooks to checkout page for customizing registration fields.
1060
- * Fixed bug in pmpro_getLevelCost();
1061
- * Another CCV/CVV fix for Authorize.net.
1062
- * License text update.
1063
- * Admin notices are loaded via Ajax now.
1064
-
1065
- = 1.1.1 =
1066
- * Added honeypot to signup page.
1067
- * Updated pmpro_add_pages to use capabilities instead of user levels
1068
- * Fixed checkboxes in admin screens.
1069
- * Now checking that passwords match on signup.
1070
- * Properly sending CCV/CVV codes to Authorize.net.
1071
-
1072
- = 1.0 =
1073
- * This is the launch version. No changes yet.
 
 
 
1
+ === Paid Memberships Pro ===
2
+ Contributors: strangerstudios
3
+ Tags: memberships, membership, authorize.net, ecommerce, paypal, stripe, braintree, restrict access, restrict content, directory site, payflow
4
+ Requires at least: 3.5
5
+ Tested up to: 4.2.2
6
+ Stable tag: 1.8.4.1
7
+
8
+ The easiest way to GET PAID with your WordPress site. Flexible content control by Membership Level, Reports, Affiliates and Discounts
9
+
10
+ == Description ==
11
+ Set up unlimited membership levels and provide restricted access to pages, posts, categories, videos, forums, downloads, support, single "a la carte" page access, and more. Paid Memberships Pro is flexible enough to fit the needs of almost all online and offline businesses. It works great out of the box, but is easy for developers to customize to fit your needs.
12
+
13
+ [youtube http://www.youtube.com/watch?v=33nORRIZaQk]
14
+
15
+ Paid Memberships Pro is the community solution for adding paid memberships to your WordPress site. PMPro is 100% GPL. All code, including add-ons, is available for free from the WordPress repository here or on our site at http://www.paidmembershipspro.com. This version in the WordPress repository is the full version of the plugin with no restrictions or additional licenses required. Developers should get involved at [our GitHub page](https://github.com/strangerstudios/paid-memberships-pro/).
16
+
17
+ = Integrate with The Most Popular Payment Gateways. =
18
+ Stripe, Authorize.net, Braintree Payments, and PayPal (Standard, Express, Website Payments Pro, and PayPal Payments Pro/Payflow)
19
+
20
+ = Works with Any Theme You Want. =
21
+ Your Existing Theme or a Popular Free or Premium Third-Party Theme.
22
+
23
+ = Infinitely Configurable, Unlimited Membership Levels. =
24
+ Set up the membership levels that best fit your business, whether they are Free, Paid, or Recurring Subscriptions (Annual, Monthly, Weekly, Daily). Offer Custom Trial Periods (Free Trial, Custom-length Trial, 'Introductory' Pricing)
25
+
26
+ = Easy-to-Use Admin Pages and Settings. =
27
+ 1. Membership access by Page/Post/Category
28
+ 2. Members list with CSV export
29
+ 3. Easy payment gateway setup
30
+ 4. Ever expanding list of membership reports
31
+ 5. Membership discounts with customizable price rules
32
+
33
+ = Control the User-Experience from Start to Finish. =
34
+ Your members can update their billing information or cancel their account directly on your site. Any active subscription will be cancelled at the payment gateway for you.
35
+
36
+ = Integrate with Top Third Party Tools. =
37
+ PMPro integrates with Mailchimp, Constant Contact, AWeber, KISSMetrics, Infusionsoft, WP Courseware, LearnDash, Post Affiliate Pro, bbPress, WooCommerce, and many more popular third party tools.
38
+
39
+ = Free Add-ons to Customize and Extend PMPro. =
40
+ Extensions, sister plugins, and other bits of code to customize your implementation and help you integrate with 3rd party services or other plugins. All open source and available for free under the GPL v2 license.
41
+
42
+ [View the PMPro Add-Ons](http://www.paidmembershipspro.com/add-ons/)
43
+
44
+ == Installation ==
45
+
46
+ = Download, Install and Activate! =
47
+ 1. Download the latest version of the plugin.
48
+ 2. Unzip the downloaded file to your computer.
49
+ 3. Upload the /paid-memberships-pro/ directory to the /wp-content/plugins/ directory of your site.
50
+ 4. Activate the plugin through the 'Plugins' menu in WordPress.
51
+
52
+ = Complete the Initial Plugin Setup =
53
+ The plugin will walk you through initial setup - basic steps are outlined below.
54
+
55
+ 1. Add one or more Membership Levels
56
+ 2. Set up the PMPro Pages
57
+ 3. Configure your Payment Gateway and SSL
58
+ 4. Customize Email Settings
59
+ 5. Review Advanced Settings (best left untouched).
60
+
61
+ [A tutorial video of the initial plugin setup is available here](http://www.paidmembershipspro.com/documentation/initial-plugin-setup/tutorial-video/).
62
+
63
+ [Written instructions on initial plugin setup are available here](http://www.paidmembershipspro.com/documentation/initial-plugin-setup/).
64
+
65
+ == Frequently Asked Questions ==
66
+
67
+ = I need help installing, configuring, or customizing the plugin. =
68
+ Please visit [our premium support site at http://www.paidmembershipspro.com](http://www.paidmembershipspro.com) for more documentation and our support forums.
69
+
70
+ = I found a bug in the plugin. =
71
+ Please post it in the [WordPress support forum](http://wordpress.org/tags/paid-memberships-pro?forum_id=10) and we'll fix it right away. Thanks for helping.
72
+
73
+ = My site is broken or blank or not letting me log in after activating Paid Memberships Pro =
74
+ This is typically caused by a conflict with another plugin that is trying to redirect around the login/register pages or trying to redirect from HTTP to HTTPS, etc.
75
+
76
+ To regain access to your site, FTP to your site and rename the wp-content/plugins/paid-memberships-pro folder to wp-content/plugins/paid-memberhsips-pro-d (or anything different). Now WP will not be able to find PMPro, and you can gain access to /wp-admin/ again. From there, visit the plugins page to fully deactivate Paid Memberships Pro. (You'll want to rename the folder back to paid-memberhsips-pro again.)
77
+
78
+ Long term, you will need to find and fix the conflict. We can usually do this for you very quickly if you sign up for support at http://www.paidmembershipspro.com/pricing/ and send us your WP admin and FTP credentials.
79
+
80
+ = Does PMPro Support Multisite/Network Installs? =
81
+ "Supporting multisite" means different things to different people.
82
+
83
+ Out of the box PMPro will basically act as a stand alone plugin for each site. Each site has its own list of membership levels, members, payment settings, etc.
84
+
85
+ I've written a plugin [PMPro-Network](http://www.paidmembershipspro.com/add-ons/plugins-on-github/pmpro-network-multisite-membership/) that shows the basics for allowing users who signs up for a membership at one site to be able to create or reclaim their own site under the multisite setup. It's powerful stuff.
86
+
87
+ If you would like more help using PMPro on a network install, sign up for support at http://www.paidmembershipspro.com.
88
+
89
+ = Does PMPro Support X? =
90
+ Not sure? You can find out by doing a bit a research.
91
+
92
+ 1. [Check our compatibility page](http://www.paidmembershipspro.com/compatibility/).
93
+ 2. [Check our add ons](http://www.paidmembershipspro.com/add-ons/).
94
+ 3. [Do a search on our site](http://www.paidmembershipspro.com/).
95
+ 4. [Ask in the forums here](http://wordpress.org/tags/paid-memberships-pro?forum_id=10).
96
+
97
+ == Screenshots ==
98
+
99
+ 1. Set up the membership levels that best fit your business, whether they are Free, Paid, or Subscriptions (Annual, Monthly, Weekly, Daily). Offer Custom Trial Periods (Free Trial, Custom-length Trial, 'Introductory' Pricing)
100
+ 2. Easy to use Membership Access Settings by Page, Post, or Category. Shortcodes to display restricted content inline. Developer-friendly hooks to restrict access any way you need.
101
+ 3. Members are WordPress Users. PMPro provides a unique interface to view, filter and search Members or export your Members List.
102
+ 4. Offer Membership Discounts with specific price rules (restricted by level, unique pricing for each level, # of uses, expiration date.)
103
+
104
+ == Changelog ==
105
+ = 1.8.4.1 =
106
+ * BUG: Fixed issue introduced in 1.8.4 where levels wouldn't show up in the front end if they hadn't been reordered.
107
+
108
+ = 1.8.4 =
109
+ * BUG: Fixed the Stripe webhook to work on new orders that are storing the subscription id instead of the customer id in the subscription_transaction_id field. (Thanks, nickd32 on GitHub)
110
+ * BUG: Fixed issue where the name and email address of customers was not being sent to Stripe if existing members checked out while the "show billing address" option was set to false.
111
+ * BUG: Fixed bug where users who checked out with the Braintree Payments gateway could checkout again using their on file credit card if an invalid credit card was entered at checkout the second time. (Thanks, patternsinthecloud)
112
+ * BUG: Updated the 2Checkout PHP API library and fixed some issues with 2Checkout integration.
113
+ * BUG: Fixed issue where custom roles had to have pmpro_membershiplevels capability to view other PMPro-related dashboard pages. (Thanks, squarelines)
114
+ * ENHANCEMENT: Added the ability to order levels on the Levels page by drag and drop in the WordPress admin.
115
+ * ENHANCEMENT: Now hiding tabs in the PMPro settings if a user doesn't have access to that tab (but does have access to other tabs).
116
+ * ENHANCEMENT: Converted all files to unix format and removed trailing whitespace. This has no functional change on the plugin, but helps developers who are contributing. (Thanks, meths on GitHub)
117
+ * ENHANCEMENT: New Danish translation. (Thanks, Morten Stenbæk and Frederik Hermund)
118
+
119
+ = 1.8.3.1 =
120
+ * BUG: Changed some uses of $wpdb->base_prefix to $wpdb->prefix to fix multisite support.
121
+ * BUG: Wrapped pmpro_isDateThisMonth in a function_exists check since some addons already have this defined.
122
+
123
+ = 1.8.3 =
124
+ * SECURITY PATCH: The pmpro_getOption function has been updated to not set values from $_REQUEST when available. This allowed malicious users to override PMPro settings on single page loads allowing them to inject text into pages and do other "bad things". (Thanks, Charles Hill)
125
+ * SECURITY PATCH: Many calls to pmpro_getOption("gateway") were changed to use pmpro_getGateway which specifically allowed for overriding that one value via a request parameter (the validity of the gateway is double checked).
126
+ * BUG: No longer showing the number of visits/views/logins "this month" when the user hasn't visited in over a month. (Thanks, Kenneth)
127
+ * BUG: Fix for email from names with apostrophes and quotes in them.
128
+ * BUG: Using current_time() and escaping form values better in logins report.
129
+ * BUG: Fixed issue in pmpro_generateUsername() when checking for duplicates. (Thanks, Ruslan)
130
+ * BUG: Fixed issue where $user var wasn't set for emails sent out in the Braintree webhook script. (Thanks, Charles Hill)
131
+ * ENHANCEMENT: Added pmpro_account_bullets_top and pmpro_account_bullets_bottom hooks to add content to the accounts page.
132
+ * ENHANCEMENT: Added pmpro_get_recurring_payments_profile_details_nvpstr, pmpro_manage_recurring_payments_profile_status_nvpstr, pmpro_create_recurring_payments_profile_nvpstr, pmpro_do_express_checkout_payment_nvpstr, and pmpro_get_express_checkout_details_nvpstr hooks to filter specific nvp strings in the PayPal Express integration.
133
+ * ENHANCEMENT: Added labels to checkboxes in the dashboard settings pages.
134
+ * ENHANCEMENT: Can now use the [pmpro_account] shortcode on other pages/widgets/etc. Can also limit to specific sections [pmpro_account sections='memberships,profile,invoices,links'] just remove sections from that list.
135
+ * ENHANCEMENT: Changed all uses of the global $table_prefix to use $wpdb->base_prefix to aid in compatibility when loading WordPress with other PHP code (e.g. phpBB). (Thanks, Dion)
136
+ * ENHANCEMENT: The notification script was updated to point to notifications.paidmembershipspro.com instead of www.paidmembershipspro.com/notifications/. This allows us to keep our notification script on a different server. This script is used to insert notifications into the PMPro admin pages when important updates are available.
137
+
138
+ = 1.8.2.2 =
139
+ * BUG: Fixed conflicts when other plugins with older Recaptcha libraries are also activated. Prefixed our copy of the Recaptcha library and functions with pmpro_ and added code to handle cases where an older version of recaptch is used at checkout.
140
+ * BUG: Fixed warnings in pmpro_formatPrice. (Thanks, Andrea Carraro)
141
+
142
+ = 1.8.2.1 =
143
+ * BUG: Fixed issue where admins would get emails RE membership changes whenever a profile was updated even if the membership wasn't changed. (Thanks, chrisw123)
144
+
145
+ = 1.8.2 =
146
+ * BUG: Fixed issue where calls to pmpro_hasMembershipLevel() using level names wasn't working. (Thanks, Scott Slone)
147
+ * BUG: Fixed issue with memberslistcsv capabilities. (Thanks, Arnaud Devic)
148
+ * BUG: Fixed fatal error that could come up sometimes when PMPro could not find a subscription for a user in Stripe. (Thanks, Chris Eller)
149
+ * ENHANCEMENT: Triming whitespace off of search text on members list and orders list searches.
150
+ * ENHANCEMENT: Security hardening of SQL queries for members list, orders list, and some helper functions.
151
+
152
+ = 1.8.1 =
153
+ * BUG: Fixed typos in pmpro_memberslist_csv and pmpro_orderscsv capabilities. (Thanks, Arnaud Devic)
154
+ * BUG: Only loading the Braintree API when using it now.
155
+ * BUG: Fixed fatal error that would occur at checkout if PayPal Standard were used with a discount code. (Thanks, John Zeiger)
156
+ * BUG: Fixed issue where discount codes would not work if billing address fields were hidden. (e.g. paying by PayPal or check)
157
+ * BUG: Fixed issue with the logic around sending emails when admin's change a member's level or expiration date. Admins will always get an email. Members will only get an email if the checkbox is checked.
158
+ * ENHANCEMENT: No longer showing check instructions at checkout if the level is free.
159
+ * ENHANCEMENT: Added pmpro_stripe_create_subscription filter. (Thanks, nickd32 on GitHub)
160
+ * ENHANCEMENT: Added Czech (cs_CZ) language files and support for using decimals as separators. (Thanks, Martin "shr3k" Kokeš on GitHub)
161
+
162
+ = 1.8 =
163
+ * ENHANCEMENT: Payment gateway classes updated so all settings and checkout fields are processed via the gateway class file. This will make it easier to maintain, update, and add new gateways.
164
+ * ENHANCEMENT: Added a pmpro_after_membership_level_profile_fields hook after the "Membership Level" field dropdown on the edit profile page.
165
+ * ENHANCEMENT: Added new statuses for orders when cancelled. cancelled = cancelled by user on cancel page or via gateway, cancelled_admin = cancelled by an admin, expired = cancelled via expiration script, level_change = user upgraded/downgraded to a different level.
166
+ * ENHANCEMENT: All gateways use the $pmpro_currency global instead of getting the value via pmpro_getOption.
167
+ * ENHANCEMENT: Changing South African Rand (ZAR) to use the symbol R to the left of prices. (Thanks, Rasada)
168
+ * BUG: Fixed some translation issues on the checkout page and in level cost text. (Thanks, Jenkisan)
169
+ * ENHANCEMENT: Added plural forms of Day, Week, Month, Year to es_ES translation. Other translation files will need to as well.
170
+ * BUG: Fixed bug where the $short parameter of pmpro_getLevelCost wasn't shortening the output in some cases. (Thanks, Kimberly Coleman)
171
+ * BUG: Fixed warning in membership dropdown on edit user/profile page. (Thanks, Thomas Sjolshagen)
172
+ * ENHANCEMENT: Added German (de_DE) translation files. (Thanks, Cedros)
173
+ * ENHANCEMENT: Added Dutch (nl_NL) translation files. (Thanks, Het Verzamelteam)
174
+ * ENHANCEMENT: Added settings links to plugins page.
175
+ * BUG: Fixed bug in Safari for iOS where checkout submission would fail after choosing "Not Now" when prompted to save the card.
176
+ * ENHANCEMENT: Added user row actions to the members list and orders list in the dashboard. Add actions using the pmpro_memberslist_user_row_actions and pmpro_orders_user_row_actions filters which work the same as the core WP user_row_actions filter.
177
+ * BUG: Fixed issues with the membership shortcode and pmpro_hasMembershipLevel function.
178
+ * ENHANCEMENT: Can now use L or -L to check if a user is logged in (L) or not (-L) in the membership shortcode or pmpro_hasMembershipLevel function.
179
+ * ENHANCEMENT: Updated to the new version of Google's ReCaptcha.
180
+ * BUG: Fixed issue with quotes and other special characters in membership level names, descriptions, and confirmations. (Thanks, Marcelo Hinojosa)
181
+
182
+ = 1.7.15.3 =
183
+ * BUG: Now correctly setting $saveid when a discount code is created so the pmpro_save_discount_code hook will have the correct id value when codes are created.
184
+ * BUG: Using get_userdata in checkout code for better multisite support when setting default role of new users.
185
+
186
+ = 1.7.15.2 =
187
+ * BUG: Stripe JS looks for a field with id AND name = CardType now so the new checkout code is compatible with older checkout templates and will avoid "complete all fields" errors.
188
+ * BUG: Removed the urlencode wrappers on the Payflow API calls. Payflow seems to expect the values to be NOT encoded.
189
+ * BUG: No longer running email content through wpautop if there is already HTML in an included header or footer for the email. (Thanks, Erik Bertrand)
190
+
191
+ = 1.7.15.1 =
192
+ * BUG: Fixed issue where "complete all required fields" was being shown when using Stripe. They are calling the CardType "brand" in their return object, not "type".
193
+ * BUG: Removed code from includes/notifications.php that was deleting the transient used to keep PMPro installs from hitting the PMPro server too often.
194
+ * ENHANCEMENT: Added the "pmpro_checkout_signon_secure" filter so you can tell PMPro to login over http or https in case other plugins (like WordPress MU Domain Mapping) conflict with what should be chosen here.
195
+ * Avoiding some warnings.
196
+
197
+ = 1.7.15 =
198
+ * SECURITY FIX: The /services/getfile.php script has been disabled by default. You must set the PMPRO_GETFILE_ENABLED constant to true or 1 to allow the script to run. Additionally, the script will strip ../ and /. type strings out of the URI when looking for files to get and will not read any files using the extensions set via the pmpro_getfile_extension_blacklist filter. By default inc, php, php3, php4, php5, phps, and phtml file types are not allowed. (Thanks, Kacper Szurek)
199
+ * BUG: Fixed issue with Stripe integration where existing members checking out for new recurring subscriptions would receive extra charges. Now deleting the old Stripe subscription and any related open invoices and creating a new subscription instead of just updating the old subscription. (Thanks, Antonv and Thomas Sjolshagen)
200
+ * BUG: Fixed issue with Braintree integration where the billing address associated with a credit card was not being updated via the update billing page. (Thanks, Keith Abramo)
201
+ * BUG: Fixed issue where pmpro_next_payment() would return a 0 timestamp instead of false when there is no previous order. (Thanks, Thomas Sjolshagen)
202
+ * ENHANCEMENT: Added pmpro_formatPrice() and pmpro_getCurrencyPosition() functions. Now using them to render prices with formatting. You can use the pmpro_format_price filter or pmpro_currecies filter to adjust the formatting of prices to support currency symbols after the price or to use commas instead of periods for separators.
203
+ * ENAHNCEMENT: Added getSubscriptionStatus() to Authorize.net gateway class. Also fixed up some of the logic around checking the gateway environment.
204
+ * BUG: Now urlencoding the API Username and Password sent through the PayPal APIs in case your values have + or other special characters in them. (Thanks, mrschmiddy)
205
+ * BUG: Now showing cycle number in the Fee column of the members list. E.g. a level that is $10 every 3 months will now show up as $10.00 + $10.00/3 Months.
206
+ * BUG: Fixed bug where user first_name and last_name were being overwritten by PayPal values when using PayPal Standard.
207
+ * ENHANCEMENT: Added PMPRO_CRON_LIMIT constant, which can be used to limit the number of records processed by each scheduled cron job. This can for example, keep your server from going over PHP time limits or email limits. Use define('PMPRO_CRON_LIMIT', 100); to set the limit to 100.
208
+ * BUG: Discount code AJAX calls now going through admin-ajax.php, fixing issues where the Themed Profiles module of Theme My Login would block those calls. (Thanks, Tony)
209
+ * ENHANCEMENT: Removed the "CardType" field at checkout and now using the jquery.creditCardValidator script to determine the card type on form submit.
210
+ * BUG: No longer setting $order->subtotal and invoice total to the billing amount (vs the initial price) for recurring payments with Cybersource, PayPal Standard, PayPal Express or Twocheckout. (Thanks, Joce Nunes)
211
+ * ENHANCEMENT: The search filter will no longer filter out a post that is in a category blocked by one membership level if the user also has access to that content through another category.
212
+ * BUG/ENHANCEMENT: Running email body through wpautop if it doesn't look like HTML.
213
+ * ENHANCEMENT: Added pmpro_getfile_before_error hook in getfile.php.
214
+ * ENHANCEMENT: Added pmpro_ipn_check_receiver_email filter if you want to change how the email is checked in the IPN log.
215
+ * BUG: Fixed bug where reports would show duplicate month labels on the last day of the month.
216
+ * BUG: Fixed some issues with logging in at checkout, especially when using FORCE_SSL_ADMIN. (Thanks, Wimans)
217
+ * ENHANCEMENT: Added "pending" as a default status for orders available on the edit order page in the dashboard.
218
+
219
+ = 1.7.14.2 =
220
+ * BUG: Removed the debug call to d($...) that was left in preheaders/checkout.php and would show up when checkout forms were submitted with empty fields. (Thanks, Nicolas)
221
+
222
+ = 1.7.14.1 =
223
+ * BUG: Fixed warnings in PayPal Express class that could break redirects at checkout. (Thanks, Adam Warner)
224
+ * BUG: Fixed issue where new users who checked out with Braintree weren't having their customerid's saved, which led to subscription syncronization issues if they checked out again or updated their billing.
225
+ * BUG: Fixed warnings in the membership-billing page.
226
+ * BUG: Fixed false positive "There are JavaScript errors on the page. Please contact the webmaster." errors.
227
+ * BUG: Fixed issue where users on some sites running 1.7.14 could not logout.
228
+ * OTHER: Changed the CSS class of the checkout button generated via [checkout_button] shortcode or pmpro_getCheckoutButton() function from "btn btn-primary" to "pmpro_btn" to match other buttons generated with PMPro.
229
+
230
+ = 1.7.14 =
231
+ * BUG: Fixed bug where level cost would sometimes have incorrect pluralization of months/weeks/etc. (Thanks, Kevin Ackerman)
232
+ * BUG/ENHANCEMENT: Now checking the child and parent theme for email_header.html and email_footer.html files to use for emails. The child theme is checked first.
233
+ * ENHANCEMENT: Added pmpro_getfile_before_readfile hook (passes $filename and $mimetype params) in getfile.php
234
+ * BUG/ENHANCEMENT: getMembershipLevel method of MemberOrder can now handle when discount_code property is an object. Also, the IPN Handler and 2Checkout handler will now try to get the discount code for the order to correctly update the users pmpro_memberships_users entry.
235
+ * BUG: Removed extra class attribute from CVV field that interfered with the required * JS code and some other CSS/JS-related things. (Thanks, catapult)
236
+ * ENHANCEMENT: Added code to redirect to the redirect_url if you pass a redirect_url to the login page and the user is already logged in. Updated the links in email confirmations to use login links with redirects instead of direct links.
237
+ * EHANCEMENT: Added pmpro_email_attachments filter, which can be used to add attachments to PMPro emails that are sent out. E.g., https://gist.github.com/strangerstudios/c4e771dca8723613bce3
238
+
239
+ = 1.7.13.1 =
240
+ * Fixed bug introduced in 1.7.12 where discount code uses were not being tracked.
241
+ * Added pmpro_check_discount_code filter so you can do your own checks on discount codes.
242
+
243
+ = 1.7.13 =
244
+ * Added Danish (da_DK) translation. (Thanks, Mikael)
245
+ * Fixed bugs with timestamps in various places (especially around trial dates) introduced in 1.7.12
246
+ * Another fix to keep PMPro from sending "undefined undefined" as the name to Stripe when the 'don't show billing fields' option is chosen.
247
+ * $pmpro_stripe_verify_address flag defaults to same value of Stripe's showbillingaddress option now.
248
+ * Changed the priority of pmpro_applydiscountcode_init hooking on init to 11 so pmpro_init() will run before and setup pmpro_currency_symbol among other things. (Thanks, semyou on GitHub.)
249
+ * Explicitly setting $current_user->membership_level in a few places to avoid issues where current_user is overwritten between init and when we try to use it.
250
+ * Avoiding a warning in pmpro_getMetavalues() function. (Thanks, Scott Sousa)
251
+ * Added target="_blank" to help links on admin pages. (Thanks, AntonVrba on GitHub)
252
+
253
+ = 1.7.12 =
254
+ * Now including expiration text in text that is updated when a discount code is used. (Thanks, John Zeiger)
255
+ * Fixed check for subscription_transaction_id in readonly fields array.
256
+ * Making sure that $myuser->membership_level is set in pmpro_has_membership_access().
257
+ * Added Norwegian locale files. (Thanks, Maritk)
258
+ * Added Turkish locale files. (Thanks, yasinkuyu on GitHub.)
259
+ * Fixed error where "undefined" was being passed to Stripe for the name.
260
+ * Fixed error with setting enddates on the edit user page for users with multiple "active" memberships.
261
+ * "Renew" link will show up on levels page only if the user has the level and it is not recurring and has an enddate.
262
+ * Stripe gateway is using $pmpro_currency global instead of getting value via pmpro_getOption, so it can be overridden via code like https://gist.github.com/strangerstudios/8806443
263
+ * Payflow Pro gateway is now passing the currency code to the API for non-US currencies. (Thanks
264
+
265
+ = 1.7.11 =
266
+ * Added "Filter searches and archives?" setting to advanced settings tab. If you had "Show excerpts to non-members?" set to No before, then this will be set to Yes after upgrade. But now you can show excerpts on single post pages while still hiding restricted content from searches and archives.
267
+
268
+ = 1.7.10.2 =
269
+ * Fixed MySQL warning/error that was introduced in 1.7.10.1 and showing for some people who had "hide excerpts" enabled.
270
+
271
+ = 1.7.10.1 =
272
+ * Fixed bug where the $pmpro_levels global would sometimes not include all levels on the levels page. (A better fix for this is coming in v2.0.)
273
+ * Fixed bug in pmpro_getMemberDays that sometimes reported more days than the user had really been a member. (Thanks, surefireweb)
274
+ * Fixed bug where search results were being incorrectly filtered. The pmpro_search_filter() function in includes/content.php hides member content from non-members if the "show exceprts" setting is set to false.
275
+ * Now checking specifically for payment_status = 'Failed' in the IPN handler before sending off the payment failed emails. (There may be other statuses we want to consider as "failures" as well, but we want to avoid failing on "pending" statuses/etc.)
276
+
277
+ = 1.7.10 =
278
+ * Added getGatewaySubscriptionStatus() and getGatewayTransactionStatus() methods to the MemberOrder class. These are implemented for PayPalExpress right now and will hit the gateway API to return information on a subscription or transaction.
279
+ * Added pmpro_memberslist_expires_column filter to members list. $order is passed as second parameter. Use this to filter the date or "Never" shown in the Expires column.
280
+ * No longer showing "Membership Levels" link in dashboard menu if a user has access to other PMPro settings pages, but not the membership levels page.
281
+ * Added pmpro_applydiscountcode_return_js hook. http://www.paidmembershipspro.com/hook/pmpro_applydiscountcode_return_js/
282
+ * Fixed formatting of the level cost when a discount code is applied via AJAX.
283
+ * Removed extra $ in checkout_check.html email template.
284
+ * Fixed bug where pmpro_setOption was not working for array values in $_POST, e.g. the hideadlevels setting on the Advanced Settings page.
285
+ * pmpro_getMembershipCategories($level_id) now returns an array of category IDs instead of an array of arrays.
286
+ * Swapped all _x function calls to use __ or _e so they are translated.
287
+ * Initial Czech Republic (cs_CZ) translation files. (Thanks, Petr Hlaváček)
288
+
289
+ = 1.7.9.1 =
290
+ * Firing activation hook on upgrade so menu doesn't disappear.
291
+
292
+ = 1.7.9 =
293
+ * Updated PayPal Express/Standard/WPP gateways to throw an error when trying to cancel a subscription that is in pending or suspended status. A warning is shown to the user to contact the site owner or cancel the subscription through PayPal. The WP admin should also get an email about the failure. In the future, there may be a better way to handle these situations automatically, but PayPal doesn't advise how to "cancel" pending subscriptions.
294
+ * Added optional $membership_id parameter to getLastMemberOrder() method of the MemberOrder class. So you can get the last member order of a specific level.
295
+ * Added Slovakian translation. (Thanks, Peter Belko)
296
+ * Added WP capabilities for each PMPro settings or report page. Admins are given these caps on plugin activation. Or you can set up other roles to use these caps. E.g. https://github.com/strangerstudios/pmpro-membership-manager-role/
297
+
298
+ = 1.7.8.2 =
299
+ * Updated the Stripe API library to version 1.11.0.
300
+ * Fixed issues where users upgrading or downgrading would have their subscriptions cancelled at Stripe.
301
+ * Fixed issues where extra emails were being sent out when users cancelled a membership when using Stripe.
302
+ * Generally made the Stripe integration better and ready for version 2.0.
303
+ * The Stripe webhook will now add a 5 second delay before processing most requests. This is to ensure that PMPro has time to update the order during checkout (Stripe can sometimes receive a charge or cancellation, then send the webhook, and WP can process that in the split second it takes PMPro to save an order during checkout.). This prevents duplicate orders in the PMPro DB on some charges and fixes some issues with cancellations.
304
+ * Setting constant PMPRO_STRIPE_WEBHOOK_DEBUG to true will send an email to the WP admin every time the Stripe Webhook is hit. You can also set it to an alternative email address or "log" to have it added to ../paid-memberships-pro/logs/stripe-webhook.txt.
305
+ * Setting constant PMPRO_IPN_DEBUG to true will send an email to the WP admin every time the IPN handler is hit. You can also set it to an alternative email address or "log" to have it added to ../paid-memberships-pro/logs/ipn.txt.
306
+ * Now showing the PMPro order ID/code in INVOICE emails instead of the Stripe order id when using the Stripe gateway.
307
+
308
+ = 1.7.8.1 =
309
+ * Important fix for Braintree Payments users. Credit card information is now correctly updated in Braintree when users submit the form on the billing information page or checkout again on the site. (Thanks, Bryan Paronto and venrooy)
310
+ * Updated Italian translation files. (Thanks, Angelo Giammarresi)
311
+ * Fixed string wrapping in reports for translation.
312
+ * Fixed PHP warning in membership stats report.
313
+
314
+ = 1.7.8 =
315
+ * Added various hooks.
316
+ * Updated the expiration field dropdown on the edit levels page to use translation strings. (Thanks, 24uurdates)
317
+ * Fixed other missing strings for translation. Added Right-to-Left support. (Thanks, louy on GitHub.)
318
+ * Added the pmpro_member_startdate filter to filter the pmpro_getMemberStartdate function. Passes $user_id, and $level_id as parameters.
319
+ * Added pmpro.getMembershipLevelForUser and pmpro.hasMembershipAccess XMLRPC methods. Example usage: https://gist.github.com/strangerstudios/9099164
320
+ * Moved the Terms of Service page/etc to right above the checkout button.
321
+ * Now caching the pmpro_getAllLevels() function.
322
+ * Added HTML <!-- comment --> wrappers to the JS on checkout.php. Helps with validation and potentially really old browsers.
323
+ * Fixed warnings in includes/login.php.
324
+ * Added pmpro_delete_discount_code and pmpro_delete_membership_level actions which run just BEFORE a membership level is deleted. Both pass the discount code ID or level ID respectively.
325
+ * Added a third "short" parameter to the pmpro_getLevelCost() function. If set to true the "The price for membership is" text is left off the beginning. The new levels page uses this param.
326
+ * Updated the table on the levels page to have one "Price" column showing the cost and expiration text. The text is generated using pmpro_getLevelCost and pmpro_getLevelExpiration instead of its own rules.
327
+ * Updated level cost text to say $1/mo instead of $1 now and then $1/mo, etc. (Thanks, louy on GitHub.)
328
+ * Added a debug by email method for the Authorize.net Silent Post handler. Add define('PMPRO_AUTHNET_SILENT_POST_DEBUG', true); to your wp-config.php. We will probably move the other services to debug by email as well.
329
+ * PMPro will now only filter the from name and email if the default values are detected (WordPress <wordpress@sitename.com>). This fixes issues where the from name and email on form emails or other plugin emails were being swapped out with the PMPro settings, which was not always desirable. (Thanks, Helen Hou-Sandi and others.)
330
+ * Added an "Only Filter PMPro Emails?" option to the email settings. If checked, only emails sent through the PMProEmail class will have their from name and email adjusted to match the PMPro email settings.
331
+ * Added filter options to orders page in admin and export. (Thanks, HTCIA and Harsha Venkatesh)
332
+ * Added Brazilian Portuguese translation. (Thanks, dballona on GitHub.)
333
+ * Fixed some warnings. (Thanks, AlexBiddle on GitHub.)
334
+ * Added pmpro_custom_advanced_settings hook to add settings to advanced settings page. Details on usage here: https://github.com/strangerstudios/paid-memberships-pro/pull/86 (Thanks, Jess Oros)
335
+ * Updated addon categorization to reflect a lot of addons which have moved into the WordPress.org repository as well as updated versions.
336
+
337
+ = 1.7.7 =
338
+ * Fixed bug where user_id = '' was breaking on some MySQL setups and keeping the pmpro_membership_orders table from being populated.
339
+ * Updated "Joined" column in members list to use the WP date format setting.
340
+ * Removed redundant phone number on checkout page if bphone is already set.
341
+ * When adding extra columns to the Members List CSV export via pmpro_members_list_csv_extra_columns, we are now passing the original heading/field name to callback function. So you can use that in your callback functions. This generally means you can use one function that just dumps the meta value rather than requiring a separate function for each meta value.
342
+ * Fixed bug where "Show Billing Fields" option was visible on the payment settings page for the testing gateway. (This option is only for Stripe.)
343
+ * Fixed bug with choosing levels to hide ads from on advanced settings tab. (Thanks, Alain Fradette)
344
+ * Fixed bug where PayPal Express was adding tax twice for subscription charges. (This does not fix existing subscriptions on the PayPal side.)
345
+ * Fixed bug with the Stripe Webhook where non-PMPro orders were being added to PMPro via the webhook. If the customer_id cannot be found (i.e. it's a non-PMPro customer), the order is ignored. (Thanks, Jacob Glenn)
346
+ * The getMemberOrderByPaymentTransactionID() function has been updated to return false if no payment_transaction_id is passed in (instead of finding the first order where the id is blank). This is inline with the getMemberOrderBySubscriptionTransactionID() function.
347
+ * Fix to code that hides posts from search to NOT hide posts that a user has access to but might also be accessible by users of a different level. (Thanks, normanyung on GitHub)
348
+ * Added a pmpro-en_GB translation that changes "State" to "County" on the billing address fields. (Thanks, alexbiddle on GitHub)
349
+
350
+ = 1.7.6 =
351
+ * Added "Old Members" option to the members list page to view members who don't have an active membership, but did in the past. (Note that we don't differentiate between members who expired and who cancelled.)
352
+ * The PayPal IPN Handler has been updated to process "subscr_cancel" messages from PayPal. This should cancel memberships in WP/PMPro when users or PayPal admins cancel a subscription at PayPal when using PayPal Express or Website Payments Pro. There are still known issues with syncing cancellations with PayPal Standard.
353
+ * Fixed bug where "error cancelling subscription" emails were being sent out erroneously. These should only go out now if PMPro has trouble cancelling a subscription. If you got a lot of these before, you should get less. If you never got this, you might start getting it sometimes.
354
+ * Orders are now set to "cancelled" status whether any attached subscriptions were cancelled or not. (Keeps us from trying again.)
355
+ * Fixed bug where All Pages view in WP dashboard would sometimes redirect to the registration page if you had Theme My Login installed.
356
+ * Setting startdate to NOW() when a user's level is changed via pmpro_changeMembershipLevel() using a level ID... also when admin's manually change a user's level. This fixes issues with PMPro Series where users who were given a level this way appear to have a start date in 1970, etc.
357
+ * Fixed bug with the pmpro_save_discount_code_level filter where -1 was being passed as the code_id for brand new codes.
358
+ * Updated "The ____ code has been applied to your order" message to it is wrapped for localization.
359
+ * Now checking ICL_LANGUAGE_CODE instead of $_REQUEST['lang'] to support WPML using different language URL formats.
360
+ * Unsetting $all_membership_levels[$user_id] at the bottom of pmpro_changeMembershipLevel().
361
+ * Added $force parameter to pmpro_getMembershipLevelForUser($user_id, $force). If set to true, it will ignore the cached value and pull the level from the DB.
362
+ * Added autocomplete="off" to credit card account number field on checkout and update billing pages.
363
+ * Added an optional $seed parameter to pmpro_getDiscountCode() which will add $seed to the scrambled string. Useful when generating many discount codes quickly and time() might not have changed.
364
+ * Now hiding "Change Membership Level" link from Member Links section of Membership Account page if PMPRO_DEFAULT_LEVEL is defined.
365
+ * Clearing the AccountNumber value at checkout if it is XXXX..., e.g. when we mask the Stripe CC number. This way users will know they need to re-enter the credit card again. (Thanks, Gary)
366
+ * Fixed bug on checkout page where html classes for the bstate field were being set based on the bcity value instead.
367
+ * Fixed bug where there was no space after the "." in some level cost text. (Thanks, multiple observers ;)
368
+ * Added some explanatory text to the payment settings page about taxes and SSL seals.
369
+ * Added a pmpro_formatAddress() function to format billing addresses/etc.
370
+ * Fixed bug where blank billing addresses were showing up in confirmation emails. If you use custom email templates, update them to use the !!billing_address!! variable instead of the full address section.
371
+ * Design updates to checkout buttons, admin screens, etc, to work better with WP 3.8 and the TwentyFourteen theme.
372
+
373
+ = 1.7.5 =
374
+ * Fixed all open bugs with 2Checkout gateway. You can now use this gateway for one time and recurring levels. We're still keeping the beta message though until we have further live testing.
375
+ * The shortcodes for the PMPro pages (e.g. pmpro_levels/etc) will now work on multiple pages. Things may still act funny if you put the shortcodes on pages other than those set in the page settings, but you can do so if you know what you are doing. One limitation still in place is that you can only have one PMPro page shortcode per page. Whichever comes first will be used.
376
+ * Added support for WPML. Simply make a copy of each PMPro page for each language. Set the PMPro page settings to the default language pages.
377
+ * Updated pmpro.pot template along with a script gettext.sh that will allow us to easily update the pmpro.pot file when we need to.
378
+ * Updated the pmpro_url function, should work the same but if you use addons or customizations and notice bugs around URLs, let me know.
379
+ * Fixed bug where old membership data was being included in the members list export instead of the latest active membership data.
380
+ * Filtering $morder->membership_level at checkout as well as $pmpro_level global.
381
+ * When loading bemail and bconfirm email from user meta for existing users, just setting them both to $bemail so different emails don't show up.
382
+ * Now sending a member's email address to Stripe when customers are created/updated.
383
+ * No longer running wpautop on email via pmpro_send_email filter.
384
+ * If first_name and/or last_name are passed at checkout, these are used to create a new user instead of bfirstname and blastname.
385
+ * Added "view" links to the page settings page.
386
+ * Fixed some potential warnings in adminpages/reports/login.php.
387
+
388
+ = 1.7.4 =
389
+ * Updated PayPal IPN to use HTTP 1.1 and "Connection: Close" per recent PayPal IPN updates.
390
+ * Fixed bug with slashes being added to the SSL Seal text when Payment Settings are saved.
391
+ * Now applying the pmpro_checkout_level filter when a membership level is loaded from an order during the review step with PayPal Express checkouts. This will fix many customizations that might have not worked with PayPal Express.
392
+ * Cleaned up PayPal Express API integration a bit. Fixes some bugs on sites with one-time payments and taxes calculated in.
393
+ * Change the use_ssl payment setting. You can choose "No" now for gateways that require SSL. Just make sure you set it to Yes when going live or use another method to force SSL on your checkout page. You can also set it to Yes (use JavaScript redirect) to fix some issues that come up with infinite redirects on shared hosting with specific caching/proxy techniques.
394
+ * Optimized the members list and orders CSV exports to run with less memory. Especially important for large sites.
395
+ * Including Italian, French, Spanish/Peru, and Spanish/Chile language files contributed from the community. Thanks Mirco Babini (mirkolofio on GitHub) and Javier Monorové (zillionsk8 on GitHub)
396
+ * Fixed the email template issue for admin emails as well. The email sent to admins for free checkouts won't include the empty billing address info anymore. (Thanks, inator on GitHub)
397
+ * Now redirecting from /register/ to PMPro levels page when latest versions of Theme My Login are activated. Can still disable by returning false with the pmpro_register_redirect or pmpro_login_redirect filter.
398
+ * Now showing a "renew" button for the current user's level on the levels page if their level is not recurring.
399
+ * Fix in crons.php where in rare cases the pmpro_expiration_notice meta was not being set correctly for users, which might lead to multiple expiration warning emails.
400
+ * Updated pmpro_next_payment to work for any cycle number or period. (Thanks, antonv and others.)
401
+ * Now checking for a logged in user before trying to get a billing address to prepopulate at checkout.
402
+ * Updated frontend.css to make sure that background gifs in error messages aren't repeated or applied to dropdowns.
403
+ * Added some currencies: CNY, INR, IDR, KRW, TRY, VND, ZAR
404
+ * All currencies now available to all gateways. You still need to make sure that your gateway supports the chosen currency.
405
+ * Now sending all emails from the PMProEmail class from the pmpro_getOption("from_email") setting. Some were sent from the get_option("admin_email") setting before.
406
+
407
+ = 1.7.3.1 =
408
+ * Using MySQL to calculate months since first order instead of date_diff, which is only available in PHP 5.3+
409
+
410
+ = 1.7.3 =
411
+ * pmpro_longform_address and pmpro_international_addresses now default to true. See this gist to go back to US-specific address format: https://gist.github.com/strangerstudios/6478242
412
+ * Added "Show Billing Address Fields" option for the Stripe payment gateway. Set to 'No' to hide billing address fields. Replaces the functionality of the "Stripe Lite" plugin.
413
+ * Added language files for es_ES, es_CL, and es_PE. Thanks, Javier Monorové (zillionsk8 on GitHub).
414
+ * Added language files for fr_FR. Thanks, Jérémy De la casa.
415
+ * NOTE: Language files may not be complete. The get involved, join us on GitHub.
416
+ * Added Cybersource and 2Checkout gateways in beta.
417
+ * Added pmpro_paypal_button_image filter so you can override the URL of the PayPal button image.
418
+ * Added a new report showing signups vs. cancellations, monthly recurring revenue, and lifetime value.
419
+ * Fixed issue where the checkout_paid template was always being used for emails. It now checks if the level at checkout is free and sends either the checkout_free, checkout_paid, or checkout_trial templates accordingly. (Thanks, inator on GitHub)
420
+ * Fixed sales report to not show $ when hovering over bars for "sales" vs. "revenue".
421
+ * Fixed issue where PayPal Standard levels using a billing frequency > 1 (e.g. every 3 months) would have an extra payment charged after one period.
422
+ * Fixed SQL error in discount code admin page that could result in cycle_periods of code levels saving incorrectly. (Thanks, Sam D'Amico)
423
+ * Removed note that Payflow gateway doesn't support recurring payments. It does.
424
+ * Now passing the membership level id in the $data var for checkout and cancellation emails. The key is "membership_id" so use $data['membership_id'] to check/access it.
425
+ * No longer setting the subtotal property of orders when the "subscribe" method of the gateways is called. This will fix cases where an initial order or a subscription with a free trial showed a charge amount > $0.
426
+ * Clicking enter in discount code box at checkout will no longer submit form and will click the "apply" button.
427
+ * Hiding the "Apply" button on the checkout page if a discount code was passed in. Showing it if the text field is changed.
428
+ * Authorize.net now supports CAD, GBP, and EUR currencies (for US merchants only) http://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Authorize-Net-Expansion-into-Canada-the-United-Kingdom-and/ba-p/33690
429
+ * Fixed notice in getfile.php
430
+ * Fixed notices and expiration dates in login report.
431
+ * Fixed notices in includes/notifications.php (Thanks, Nilesh)
432
+ * Allowing dashes (-) in discount codes now.
433
+
434
+ = 1.7.2.1 =
435
+ * Fixed warning when trying to load the "free" gateway on free level checkouts.
436
+ * Fixed warning coming from login report tracking.
437
+ * Changed all $wpdb->escape() calls to esc_sql() to fix notice.
438
+ * Fixed another bug in revenue/sales report for daily charts. (backported to 1.7.2, but a few people who upgraded missed it)
439
+ * Fixed bug on add/edit level page that was causing issues in some versions of IE.
440
+ * Fixed bug where links in the email_header.html and email_footer.html templates were not being converted to true links.
441
+ * Removed an extra $ from the PayPal Express confirmation emails.
442
+ * Fixed loading of local (in the paid-memberships-pro/languages directory) translation files. (Should have some bundled with the plugin soon.)
443
+
444
+ = 1.7.2 =
445
+ * Fixed the revenue/sales report to accurately track recurring sales and reports from earlier years.
446
+ * Now trimming whitespace on any text field updated through the PMPro settings pages. This prevents issues like those that come up if you have whitespace in your Stripe API key, etc. Thanks, Scott Sousa.
447
+ * Added discount code use tracking for PayPal Standard. Saving the use before the user goes to PayPal to pay.
448
+ * Added discount code id and code columns to orders and members list CSV exports.
449
+ * Changed default capability check to 'manage_options' (administrator), and added a filter named 'pmpro_edit_member_capability' to allow dev's to change this capability. Thanks, Scott Sousa.
450
+ * Now removing empty (only includes the PMPro shortcode) PMPro pages when uninstalling PMPro. Thanks, Scott Sousa.
451
+ * Now adding classes to the body tag (if the theme supports it through the body_class() function) to aid in design. Classes are pmpro-account, pmpro-billing, pmpro-cancel, pmpro-checkout, pmpro-confirmation, pmpro-invoice.
452
+ * Adding $0 orders for free level checkouts (will help reporting).
453
+ * Added pmpro_invoice_bullets_top and pmpro_invoice_bullets_bottom hooks to confirmation and invoice pages. Passes $pmpro_invoice.
454
+ * Fixed members list CSV export for lists with search queries.
455
+ * Added is_ssl() check to pmpro_https_filter so PMPro will add HTTPS to URLs even if the $besecure global hasn't been set yet. Thanks, Andrew Calaio at wpcurve.com.
456
+ * Removed the pmpro_cron_trial_ending_warnings daily cron so trial ending emails will no longer go out. The function pmpro_cron_trial_ending_warnings() is still there if you want to call it yourself. There were issues on some sites where these emails were going out erroneously and also many ways of doing "custom trials" including setting the subscription start date back a certain number of days was not picked up as a trial by this script anyway.
457
+ * Added the pmpro_cron_credit_card_expiring daily cron to send out warnings a month or so before credit cards on record are set to expire.
458
+ * Updated pmpro_has_membership_access to return true if the $post_id is empty or cannot be found. This fixes issues where member warnings were being added to non-pages, e.g. the bbPress forums archive. To lock down "pages" like this, you'll need to use custom coding, URL detection, etc. Thanks, Scott Sousa (scottsousa on GitHub and WP.org) from Slocum Studio.
459
+
460
+ = 1.7.1 =
461
+ * Design updates to frontend and backend pages.
462
+ * Added Sales and Revenue Report.
463
+ * Fix to Braintree webhook that should help get it verified by Braintree more easily.
464
+ * Fix to PayPal IPNHandler to check both that either the primary or the business email address sent from PayPal matches the one stored in the payment settings.
465
+ * Added pmpro_ajax_timeout hook to change the timeout limit from 2000 (2 seconds) to something else.
466
+ * Fixed bug that occurred when the pmpro_register_redirect filter returned false or a blank link. Thanks, Vladimir Garagulya.
467
+ * Added pmpro_paypal_standard_nvpstr and pmpro_set_express_checkout_nvpstr filters to change or add parameters to an name-value-pair string sent to PayPal in a couple cases.
468
+ * Fixed checkout failure on Free level when in mySQL Strict Mode. (Thanks, inator on GitHub)
469
+ * Only checking pmpro_checkForUpgrades in admin/dashboard now. (Thanks, topdown on GitHub)
470
+ * No longer loading recaptcha library in the admin. Also wrapped the recaptchalib require in an init function to delay it a bit so we can check if other plugins have already loaded it.
471
+ * PMPro-Mailchimp and WP-Bouncer have been moved into the WP repository. Other Add-on updates.
472
+ * New users will now be set to the "default role" set in the General settings instead of spefically "subscriber". (Subscriber is the default default role though.) Thanks, Nabil Kadimi.
473
+ * Wrapped strings in login report for translation.
474
+ * Added indexes to the following columns in the pmpro_membership_orders table: status, payment_transaction_id, subscription_transaction_id, affiliate_id, affiliate_subid
475
+
476
+ = 1.7.0.4 =
477
+ * Another database fix for new installs.
478
+
479
+ = 1.7.0.3 =
480
+ * Fixed a performance issue added in 1.7.0.2.
481
+
482
+ = 1.7.0.2 =
483
+ * Fixed HUGE issue with the DB setup on fresh 1.7+ installs. If you installed version 1.7 or 1.7.0.1 fresh (not upgraded from earlier version) then PMPro will not work until you upgrade to version 1.7.0.2.
484
+ * Removed from old PHP short tag use
485
+ * Fixed generation of members only and non-logged in text on new installs.
486
+
487
+ = 1.7.0.1 =
488
+ * Added the redirect away from wp-login.php page (was accidentally removed in version 1.7).
489
+ * Added support for Theme My Login versions 6.3+
490
+ * Fixed CSV downloads.
491
+ * Fixed some warnings.
492
+ * Fixed generation of cost text when using built in tax.
493
+ * Added "pmpro_subscribe_order" filter.
494
+ * Added an index to the user_id column of pmpro_memberships_users table which will help with performance of the new logins report and other user search functions.
495
+
496
+ = 1.7 =
497
+ * Ready for localization efforts.
498
+ * Addons tab in PMPro Settings in the dashboard.
499
+ * Reports page in dashboard with login report.
500
+ * Webhook code for Braintree Payments gateway.
501
+ * If PayPal Standard is the active gateway, users without membership levels will be able to see the confirmation page with a message that PayPal is processing payment.
502
+ * Fixed bug where PayPal recurring orders were being attributed to the wrong user (if no subscriber id was attached to the IPN message).
503
+ * Fixed bug where users sometimes couldn't checkout with a discount code that made a level free.
504
+ * Cleaned up code in base paid-memberships-pro.php file.
505
+ * Updated the .pmpro_checkout tr.odd td line in frontend.css to use rgba with alpha transparency to work a bit better on dark background themes.
506
+ * Fixed bug where a user's first_name and last_name meta fields might be overwritten by the billing name fields at checkout. It will still set them if the user's first and last name fields are blank. (Thanks, John Hamlin.)
507
+ * Fixed bug where zipcode was shown instead of state in the members list CSV export. (Thanks, John Hamlin.)
508
+ * Fix to show discount codes on free trial confirmation emails if one was used.
509
+ * Added the pmpro_random_code filter so you can hook in and change invoice code/etc generation.
510
+ * Correctly padding zeroes on credit card expiration dates like 09/2013 when using Stripe. This SQL statement should fix broken entries in your orders table: NOTE (1) Backup your database first. NOTE (2) Make sure you change the table name to match your WP prefix,etc. >>> UPDATE wp_pmpro_membership_orders SET expirationyear = CONCAT(SUBSTRING(expirationmonth,2,1), expirationyear), expirationmonth= CONCAT('0', SUBSTRING(expirationmonth,1,1)) WHERE expirationmonth > 12;
511
+ * Wrapped some AJAX and service calls code in init() functions so they will more consistently work with hooks/filters. (Before if PMPro loaded before a plugin or bit of code that added filters/etc, the filters wouldn't get applied.)
512
+ * Fixed Stripe JS to also send city to Stripe. (This is important because Stripe doesn't seem to show the address at all if the city is missing.)
513
+ * Added 'pmpro_members_list_sql' hook to filter the SQL used on the members list page and CSV export.
514
+ * Added 'pmpro_members_list_csv_heading' and 'pmpro_members_list_csv_default_columns' hooks to filter the default columns in the members list CSV. (e.g. to check role and remove columns)
515
+ * Added 'pmpro_members_list_user_link' hook to filter the link and username displayed on the members list page. (e.g. to check role and remove link to edit user)
516
+ * Checking that "status='active'" when finding subscriptions to cancel when deleting a level. This will keep PMPro from trying to cancel someone more than once... or trying to cancel inactive subscriptions.
517
+ * Fixed bug where Sales Tax fields were hidden on the payment settings page if Stripe was chosen as the gateway.
518
+ * No longer logging IPN activity to logs/ipn.txt by default. (Uncomment the lines at the bottom of services/ipnhandler.php to use the log to debug.)
519
+
520
+ = 1.6.1 =
521
+ * Added recurring billing support to Payflow integration.
522
+ * Fixed bug where an order's code was shown instead of the subscription ID on the edit order page.
523
+ * Fixed some logic with determining if level settings are not compatible with the current gateway.
524
+ * On notice and one DB query fix in upgradecheck.php submitted by pranjithkumar on GitHub. Thanks!
525
+
526
+ = 1.6.0.1 =
527
+ * Fixed Braintree integration for production environments. Braintree needed to be told "production" instead of "live".
528
+ * Removed !!field!! lines from a couple of admin emails.
529
+ * Added login_link as data for the cancel_admin email template.
530
+
531
+ = 1.6 =
532
+ * Added Braintree payments as a gateway option. This should be considered in "beta". Please get in touch if you are using Braintree payments with PMPro. Everything should function except that we're still working out an issue with the webhook handler.
533
+ * Added a new dashboard page Orders to view all orders processed by PMPro with an option to export to CSV.
534
+ * Fixed bug where "Your membership level has changed" emails were being sent out the first time a user's profile was edited, even if the level wasn't changing.
535
+ * Removed the revenue estimate from the members list page. This causes performance issues on sites with many members. A new reports dashboard page is coming soon.
536
+ * Not showing payment settings warning now when Payflow is setup with all values filled in.
537
+ * Updated preheaders/billing.php to get the most recent successful order from the DB to use when updating. (ORDER BY id DESC in the query)
538
+ * Added pmpro_stripe_subscription_deleted hook in stripe-webhook.php for when subscriptions are cancelled on the Stripe side. Use this code to cancel on your site as well: https://gist.github.com/strangerstudios/5093710
539
+ * Now using $pmpro_currency_symbol when membership price is shown on the edit profile page in the dashboard/etc.
540
+ * Added pmpro_authorizenet_post_url filter to use Authorize.net gateway class with a different post url, e.g. if you have a gateway that offers an Authorize.net compatibility mode.
541
+ * Added pmpro_check_status_after_checkout filter so you can e.g. set the status to "pending" instead of "success" when a user checks out with the check gateway. They will still have access to the membership level, but you can update the status via the orders dashboard later.
542
+ * Added pmpro_confirmation_order_status filter so you change which status the confirmation page looks for. Can return an array as well since the getLastMemberOrder method call on MemberOrder has been updated to support $status as an array.
543
+ * Orders made via the check gateway now have PaymentType = "Check" and CardType = "".
544
+ * Added a notes column to orders.
545
+ * Fixed bug where discount codes were not showing up in checkout emails if the level was free.
546
+ * Added some wpdb->escape() wrappers to the saveOrder method of MemberOrder which will fix some bugs with orders with fields with apostrophe's in them, etc.
547
+ * Added checks for custom capabilities to the PMPro admin pages in case you want to give non-admins access. Caps are: pmpro_discountcodes, pmpro_emailsettings, pmpro_membershiplevels, pmpro_memberslist, pmpro_memberslist_csv, pmpro_orders, pmpro_orders_csv, pmpro_pagesettings, pmpro_paymentsettings
548
+ * Added pmpro_memberslist_extra_cols_header and pmpro_memberslist_extra_cols_body hooks to add extra columns to the members list page.
549
+ * Fixed pmpro_paypal_express_return_url_parameters filter to properly encode & and = so the params are properly added to the ReturnURL instead of being seen as extra params to the full PayPal Express URL. The PMPro Addon Packages plugin has been updated to take advantage of this to make that plugin more compatible with PayPal Express.
550
+ * Fixed bugs with Strip webook: now listening for charge.succeeded and charge.failed, other fixes.
551
+
552
+ = 1.5.9.2 =
553
+ * Fixed Members List bugs introduced in version 1.5.9.1.
554
+
555
+ = 1.5.9.1 =
556
+ * Revamped the ipnhandler code. It's much cleaner now and should be easier to support with all 3 PayPal APIs (Standard, Website Payments Pro, Express) working through the one handler.
557
+ * Added Payflow Pro as a gateway option. Currently, only one-time charges is supported.
558
+ * Added the pmpro_register_redirect filter to allow you to change the URL PMPro redirects wp-login.php?action=register to. Returning false or an empty string will result in no redirect from the register page.
559
+ * Added pmpro_subscription_payment_failed hook that runs if a failed payment comes in through the IPN Handler, Authorize.net silent post, or Stripe web hook. do_action("pmpro_subscription_payment_failed", $old_order); $old_order is a MemberOrder object.
560
+
561
+ = 1.5.9 =
562
+ * Fixed bug on Membership Billing page that was hiding the billing address fields.
563
+ * Changed all of the instances of "firstpayment" order statuses to "success". Also running query to fix statues in the DB. This caused issues for levels with only a one-time payment, where the invoice wouldn't show up in their account page.
564
+ * Fixed the PayPal Express gateway to correctly set the order transaction id to TRANSACTIONID instead of the PROFILEID.
565
+ * Updated the IPN handlers to accept recurring_payment_id or subscr_id when checking for recurring payment orders.
566
+ * Changed the site_url() in the javascript for discount codes on the checkout page to home_url(). home_url() is better to use in case users have their WP core files in a different directory.
567
+ * You can now place email templates in a paid-memberships-pro/email folder in your theme and PMPro will use these before using the built in email templates. Just copy the file out of the wp-plugins/paid-memberships-pro/email folder, use the same filenames, and edit the file.
568
+ * You can now place page templates in a paid-memberships-pro/pages folder in your theme and PMPro will use these before using the built in page templates. Just copy the file out of the wp-plugins/paid-memberships-pro/pages folder, use the same filename, and edit the file.
569
+ * You can now place css templates in a paid-memberships-pro/css folder in your theme and PMPro will use these before using the built in page templates. Just copy the file out of the wp-plugins/paid-memberships-pro/css folder, use the same filename, and edit the file.
570
+ * Fixed a bug where discount codes that reduced a level price to $0 were not being counted as "uses".
571
+ * Added a pmpro_email_data filter to make it easier to add variables to edited email templates.
572
+ * Added user_login to the data fields all of the emails for use by templates (use !!user_login!! in your template)
573
+ * Added $wp_version to globals set in preheaders/checkout.php to properly compare versions later in the script and avoid a notice.
574
+ * Added pmpro_email_filter hook to filter entire email object at once.
575
+ * Warning fix: Updated email class to check if the template file exists before trying to load the template into the body. (Useful if you are using the PMProEmail class for your own emails.)
576
+
577
+ = 1.5.8 =
578
+ * Fixed bugs with the Membership Billing page. (Thanks, adambware)
579
+ * The getMembershipLevelForUser function and getMembershipLevel method of the MemberOrders class will now include expiration_number and expiration_period properties on the returned level. These are needed to properly extend membership levels when checking out for the same level.
580
+ * Added pmpro_before_send_to_paypal_standard hook. This is executed at checkout before calling the sendToPayPal method on the order. The register helper plugin has been updated to update user meta fields during this hook in addition to the pmpro_after_checkout hook. (Because for PayPal Standard, when pmpro_after_checkout is called, the $_SESSION vars are unavailable to it. So other plugins relying on the pmpro_after_checkout hook may have issues with PayPal Standard.)
581
+ * Re-Added !class_exists("Stripe") check before loading Stripe library. This assumes that other plugins using the Stripe lib are loading compatible versions and/or also checking first before loading the Stripe lib. (*It's important that you test things if you are using multiple plugins loading Stripe. If the other plugins are loading old Stripe APIs first, PMPro may not work correctly.*) The alternative is to namespace the Stripe library for PMPro which would take some more effort.
582
+ * Now running email subject lines through html_entity_decode to avoid special characters for apostrophes/etc.
583
+ * pmpro_is_login_page() now also checks if is_page("login")
584
+ * The pmpro_login_redirect and pmpro_besecure functions, which handle HTTP/HTTPS logic have been updated. pmpro_besecure is now running on login_init instead of login_head to avoid a "cannot resend headers" error. pmpro_login_redirect will strip https from the URL if FORCE_SSL_LOGIN is set but FORCE_SSL_ADMIN is not set to avoid "need to login twice" bugs.
585
+ * Updated code to support auto-hiding ads with newer versions of Easy AdSense.
586
+ * Updated how the members list CSV is generated to avoid PHP notices when meta values are not found/etc. Also added a prefix to the enclose function in memberslist-csv.php (enclose => pmpro_enclose).
587
+ * Now using get_option("date_format") when outputing a date in the admin, frontend, or in an email.
588
+ * Proper trial support for Stripe. (We use the trial_period_days parameter of the Stripe plan object to push the first payment back - since the first payment is handled in its own transaction. We now also add days to this based on the # of trial subscriptions set for the level in the admin.
589
+ * Added a pmpro_require_billing javascript variable when using Stripe. If a discount code changes the membership level to free, pmpro_require_billing will be set to false and the Stripe JS checks won't fire.
590
+
591
+ = 1.5.7 =
592
+ * Ready for WordPress 3.5
593
+ * Fixed issues in the PayPal IPN Handler that were leading to errors when users would checkout using the PayPal standard gateway.
594
+
595
+ = 1.5.6.1 =
596
+ * Fixed "invalid gateway" bug when using PayPal Express option with the PayPal/PayPalExpress gateway.
597
+ * Fixed some warnings.
598
+
599
+ = 1.5.6 =
600
+ * Fixes in the new pmpro_getMemberStartdate and pmpro_getMemberDays functions.
601
+ * Fixes to SQL queries for the expiration and trial ending crons.
602
+ * Added a pmpro_required_user_fields filter similar to the pmpro_required_billing_fields filter.
603
+ * Added a function pmpro_setMessage($message, $type) that sets $pmpro_msg and $pmpro_msgt globals if they aren't set already.
604
+ * Added a function pmpro_getClassForField($field) that will return a string including "pmpro_error" or "pmpro_required" if applicable. You can filter the classes added to the fields via the pmpro_field_classes filter.
605
+ * Showing * on required fields via javascript on the checkout page.
606
+ * Updated checkout page to highlight in red fields that are related to the error message shown.
607
+ * Added headers property to the PMProEmail object. You can add headers (e.g. to add a cc or bcc) to PMPro emails using the pmpro_email_headers filter.
608
+ * Updated Stripe library to version 1.7.10. Updated PMPro to take advantage of new "interval_count" parameter in subscriptions, so you can now have subscriptions setup for "every 2 months", etc.
609
+ * Fix to pmpro_checkout_start_date_keep_startdate filter added in 1.5.5
610
+ * Added "Start Date" and "End Date" to emails sent to admins when a membership is cancelled.
611
+ * Now checks for CSS files in a paid-memberships-pro subfolder of your active theme and uses those admin.css, frontend.css, and print.css files instead if they exist. (Going to move email and page template checks to that subfolder in the future as well.)
612
+
613
+ = 1.5.5 =
614
+ * Updated pmpro_check_site_url_for_https function to cache the siteurl to limit DB queries.
615
+ * Added includes/filters.php to store hacks/filters/actions that were originally developed outside of the PMPro core and brought in later... or just things that are cleaner/easier to impement via hooks and filters.
616
+ * Added a "delay" property to the membership shortcode. E.g. [membership level="1" delay="7"]...[/membership] will show that content if a member has had level 1 for at least 7 days.
617
+ * If a member checks out for the same level again (extending their membership), the startdate added to pmpro_memberships_users will be their old startdate.
618
+ * If a member checks out for the same level again, the remaining days on their existing membership will be added to their new enddate. So e.g. if a user starts an annual membership in April 2013, then checks out again (extends) their membership in February 2014, their new enddate will be April 2015 instead of February 2015. (NOTE: if you were doing this through the custom code here - https://gist.github.com/3678054 - you should remove your custom code.)
619
+ * Fixed bug where you couldn't remove all required membership levels from a page/post. (Thanks, lisaleague)
620
+ * Updated the button CSS included in paid-memberships-pro/css/frontend.css. I added a pmpro_ prefix to these classes so they don't conflict with other .btn CSS rules. I also changed the rules a bit to show the buttons more consistently. If you relied on the old CSS rules, you may need to tweak your theme to get things looking right.
621
+
622
+ = 1.5.4 =
623
+ * Added a gateway check to preheaders/checkout.php. Mischivous users used to be able to bypass payment by passing &gateway=check or something similar to the checkout page. PMPro would then use the check gateway to checkout. Now only the active gateway option in the payments settings or gateways added via the new pmpro_valid_gateways filter (1 parameter is the array of gateways, add/edit the gateways and return the array). It is important that all PMPro users upgrade to keep mischivious users from accessing your site for free. Any site currently enabling multiple gateway options will need to add code to set the valid gateways. More info here: http://www.paidmembershipspro.com/2012/06/offering-multiple-gateway-options-at-checkout/
624
+ * Fixed bug where level restrictions would be deleted if a page were updated via quick edit.
625
+ * Added if(!class_exists("Stripe")) to the Stripe class definition. This should help with some conflicts if other plugins have their own Stripe library. (Going to udate the Stripe library in the next version and work on supporting new Stripe functionality.)
626
+ * Fixed a bug where copying a level didn't properly set recurring billing settings. (Thanks, AtheistsUnited)
627
+ * Fixed some typos. (Thanks, AtheistsUnited)
628
+ * Fixed some warnings.
629
+
630
+ = 1.5.3.1 =
631
+ * Fixed bug in expiration warning cron query. (Backported to 1.5.3)
632
+
633
+ = 1.5.3 =
634
+ * Added PayPal Standard Gateway
635
+ * Added code to support using Stripe with the minimal billing fields. Use add_filter("pmpro_stripe_lite", "__return_true"); to enable this
636
+ * Added an Email setting to send the default WordPress new user email(wp_new_user_notification) or not. By default this was being sent along with the PMPro checkout confirmation email. Now only the checkout confirmation email will be sent unless you check the new setting. You can still override this with the pmpro_wp_new_user_notification filter.
637
+ * Fixed bug: Now re-hiding the "Processing..." message if there is a Stripe javascript error at checkout.
638
+ * Updated MemberOrder method saveOrder to check for gateway and gateway_environment properties when inserting. If none are found, it will use what is set in your payment settings. This allows you to set the gateway on a MemberOrder object and save the order with that gateway instead of the default.
639
+ * Now only showing the check instructions if the gateway is "check" AND the level is not free.
640
+ * Added a check to the notification code in the settings header so it wouldn't display NULL in the notification space if WP passes that back.
641
+ * Some warning fixes.
642
+ * Fixed a bug in the PayPal Express gateway class where the pre-tax amount was being passed to PayPal instead of the tax-computed amount.
643
+ * Added Canadian Dollars as a currency option for Stripe.
644
+ * Fixed typo/bug with saving trial amounts in the memberships_users table after checkout. (Thanks, Badfun)
645
+ * Fixed bug in initial and recurring revenue calculation on members list page.
646
+ * Fixed bug when setting membership_level of current user after checkout that could cause various issues. (Thanks, drrobotnik)
647
+ * Fixed bug in Stripe webhook that resulting in cancelation emails being sent to the 1st user in the DB vs. the user who cancelled. (Thanks, Kunjan of QuarkStudios.com)
648
+ * The getLastMemberOrder() method of the MemberOrder class now returns the last order with status = 'success' by deafult. You can override this via the second parameter of the function. So getLastMemberOrder($user_id, "cancelled") to get the last cancelled order or getLastMemberOrder($user_id, false) to get the last order no matter the status.
649
+ * Added pmpro_authnet_silent_post_fields filter and pmpro_before_authnet_silent_post and pmpro_after_authnet_silent_post hooks to the Authorize.net silent post handler. All hooks are passed the $fields variable built at the top of the script that mirrors the $_REQUEST array.
650
+
651
+ = 1.5.2.1 =
652
+ * Fixed bugs with pmpro_hasMembershipLevel.
653
+ * Added ability to use the 0 level (non-member) in arrays passed to pmpro_hasMembershipLevel. e.g. pmpro_hasMembershipLevel(0,1,2) = has no membership, level 1, or level 2.
654
+ * Fixed bug with the pmpro_after_change_membership_level hook, where a level object was passed instead of the id. The object would be nice to have, but we've been passing the id in the past. I changed it back for reverse compatibility. (You can always look up the level by level_id and user_id.
655
+
656
+ = 1.5.2 =
657
+ * Added "Pay by Check" as a gateway option. Users gain immediate access. You can show instructions for who to write the check out to, where to mail it, etc.
658
+ * Added uninstall.php script. (Thanks, badfun)
659
+ * Fixed bug where the "Use SSL" option reverted to "No" for Testing, Stripe, and PayPal Express gateways whenever the payments settings page was loaded.
660
+ * Fixed bug where the IPN Handler URL was not showing up when PayPal Express was selected.
661
+ * Fixed bug where PMPro was not sending the proper trial amount to PayPal when using Website Payments Pro or PayPal Express.
662
+ * Added id and status fields to the pmpro_memberships_users table and updated all code to use these fields. This is important for allowing multiple membership levels and tracking cancelled orders. (Thanks, Zookatron!)
663
+ * Appending ?level=# to the confirmation page URL after checkout to aid in analytics tracking.
664
+ * No longer filtering pages/posts from search results if "show excerpts" is set to YES.
665
+ * Showing tax on invoices if applicable.
666
+ * Sending tax amount to PayPal Express again.
667
+ * Added code to force HTTPS if the siteurl option starts with https:
668
+ * Hiding billing information box on Membership Account page if the last invoice was by check or paypal express.
669
+ * Added pmpro_email_days_til_expiration and pmpro_email_days_til_trial_end to change how many days before expiration/etc to send an email. The default is 7.
670
+ * Fixed typo/bug in preheader/checkout.php RE the pmpro_stripe_verify_address hook. (Thanks, Oniiru!)
671
+ * Updated the_excerpt filters to prevent PMPro messages from being added to an excerpt twice in some setups.
672
+ * the_content filter removes any class="more-link" class from the content if showing an excerpt.
673
+
674
+ = 1.5.1 =
675
+ * Fixed bug in getfile.php introduced in 1.5.
676
+ * Fixed bug in the saveOrder method of the Member Order class. When "updating" vs. "inserting" the $id property of the class was being wiped out. This sometimes caused problems if the id was needed later, e.g. with PayPal Express updating orders.
677
+ * Now checking if(!defined("WP_USE_THEMES")) instead of if(function_exists("get_userdata")) to see if WP is already loaded.
678
+ * Added initial payment to the fee column of the members list.
679
+ * Added initial payment as a column in the members list CSV export.
680
+ * Added the pmpro_members_list_csv_extra_columns filter to add columns to the Members List CSV export. Sample usage here: https://gist.github.com/3111715
681
+
682
+ = 1.5 =
683
+ * Very important security fix. Please upgrade to 1.5.
684
+ * The Members List CSV export is now executed through admin-ajax.php and will only work if you are logged in as an admin (can manage options).
685
+ * Fixed service scripts to work if logged in or logged out.
686
+ * Changed the applydiscountcode service to going through the site_url() instead of admin-ajax.php to avoid HTTP/HTTPS issues.
687
+
688
+ = 1.4.9 =
689
+ * Important: Fixed handling of services sent through admin-ajax.php. Your silent post/ipnhandler URLs, etc, may have been updated.
690
+ * Added stripslashes() to membership description output on the checkout page.
691
+ * The pmpro_getLevel() function may return the wrong level on the levels, checkout, or account page where another $pmpro_levels array was setup. (The array pmpro_getLevel uses used the level id as the array keys. The older $pmpro_levels used 0-n.) To fix this, I added a pmpro_getAllLevels($include_hidden = false) function and now use that function on the levels, checkout, and account pages. The function queries the database for all levels and then puts them into an array where the level ids are the keys.
692
+ * Fix for !!billing_country!! in emails. (Somehow a previous fix for this got overwritten. My bad.)
693
+ * Settings $pmpro_level->code_id to $discount_code_id if a valid discount code is applied to a level at checkout. This is
694
+ useful for determining if/what discount code was applied to the level when processing it in hooks.
695
+ * Added pmpro_getDomainFromURL() and using that to set PMPRO_URL.
696
+ * New hooks when orders are added/updated: pmpro_update_order (before update), pmpro_updated_order (after update), pmpro_add_order (before add), pmpro_added_order (after add). (Thanks, zookatron!)
697
+
698
+ = 1.4.8 =
699
+ * Fixed !!siteemail!! values for email templates.
700
+ * Adjusted display of "processing" message next to checkout button when clicked.
701
+ * Added billing_country to orders table in DB and the memberorder class. Handling countries better through the code.
702
+ * Removing closing ?> at the bottom of various files while working through. This can avoid errors on some setups.
703
+ * Using wp_enqueue_style to load plugin stylesheets now.
704
+ * Added the pmpro_getCheckoutButton($level_id, $button_text, $classes) function and [pmpro_button level="1"] shortcode to add buttons with links to more easily level checkout pages into your pages and themes. Copied over btn and btn-primary styles from Member Lite theme.
705
+ * Updated include/require statements to work if the wp-content folder has been renamed or moved.
706
+ * Added code to load scripts in the services folder via admin-ajax.php. (Helps when the plugins folder is not where PMPro expects it to be.)
707
+ * The discount code AJAX call is using the new service URL (/wp-admin/admin-ajax.php?action=applydiscountcode).
708
+ * Added IPN/Silent Post/Webhook instructions to payment settings page.
709
+
710
+ = 1.4.7 =
711
+ * Fixed some notices in the PayPal gateway code.
712
+ * No longer calling Stripe JS at checkout if the level is free.
713
+ * Fixed some HTTPS handling for ISS hosting. (IIS sets $_SERVER['HTTPS'] to "off" or "on" instead of TRUE or FALSE.)
714
+ * Added #pmpro_processing_message to checkout page which is shown when the submit button is clicked. You can override the message with the pmpro_processing_message filter. You can tweak the CSS to show this differently as well.
715
+
716
+ = 1.4.6 =
717
+ * No longer trying to setup a subscription with Stripe for levels with only an Initial Payment amount.
718
+ * Updated recaptchalib.php, which fixes issues with using recaptcha.
719
+ * Now setting the first_name and last_name meta fields at checkout to match the business first and last name. (Previous scripts to add additional first/last names to the checkout field should override these.)
720
+ * Updated the save profile code to only null out the expiration date for a membership if a blank expiration is explicitly passed through the form. If you had other plugins allowing users to edit their profile, etc, it might not have been passing the expiration date and thus updating users expiration dates. Admins and users would have gotten emails.
721
+ * Some updates to applydiscountcodes.php service to support plugging into how discount codes function. Added the pmpro_discount_code_level filter to applydiscountcodes.php.
722
+
723
+ = 1.4.5.1 =
724
+ * Removed debug calls to krumo() which would cause fatal errors in certain situations. Please upgrade. (Note that PMPro versions that go three dots deep are usually the most important ones :)
725
+
726
+ = 1.4.5 =
727
+ * Now setting a var "code_level" in javascript in applydiscountcode.php so it can be used to manipulate prices, etc after applying a discount code.
728
+ * Added the pmpro_cancel_previous_subscriptions filter, which is set to false will skip cancelling the old membership level/subscription at checkout. This is dangerous, but is used by the pmpro-addon-packages plugin to have an addon charge without affecting the old subscription. This works because the user is checking out for the same membership level. (So they don't really have > 1 membership level.)
729
+ * Trimming strings sent to the Authorize.net API in the subscribe and update calls.
730
+
731
+ = 1.4.4 =
732
+ * Using get_admin_url instead of home_url in various places so the links will work on sites installed in a subdirectory. (Notifications, admin bar, pagination in admin screens, etc.)
733
+ * Wrapping some XML fields in Authorize.net API calls in <![CDATA[ ]]> to avoid issues when non-text characters (e.g. &) are included in the level name, etc.
734
+
735
+ = 1.4.3 =
736
+ * Fixed a bunch of notices and warnings on discount codes page in admin.
737
+ * Added hooks for changing the discount code page: pmpro_save_discount_code_level, pmpro_save_discount_code, pmpro_discount_code_after_settings, pmpro_discount_code_after_level_settings. Look them up in discountcodes.php to see how they work.
738
+ * Updated pmpro_send_html(), which filters emails, to use wpautop instead of nl2br. This will fix any extra double spacing you may have noticed in your emails.
739
+ * Added a stripslashes around the membership level confirmation text on the confirmation page. Extra slashes were breaking links, etc.
740
+ * Added membership level to subject of checkout confirmation email sent to admins.
741
+
742
+ = 1.4.2 =
743
+ * Fixed bug that was added slashes into a level's description and confirmation when saving.
744
+ * Removed wp_editor use is the blog is running a version of WordPress < 3.3. (Note: We will only officially support the latest version of WordPress with each release.)
745
+ * Added the pmpro_pages_shortcode_{membership page} filter. This can be used to filter the content output by the pmpro_checkout and other page shortcodes. e.g. use pmpro_pages_shortcode_checkout to tweak the HTML output of the pmpro_checkout shortcode. The pages are "account", "billing", "cancel", "checkout", "confirmation", and "levels".
746
+ * Added a "use_ssl" option. For the PayPal Website Payments Pro and Authorize.net gateways, this must be on. For Stripe, this will default to on, but can be switched off. For PayPal Express and the test gateway, it will default to off but can be switched on. When on, the checkout and update billing pages will be forced to be served over SSL. If off, those pages will redirect to non-ssl versions. The previous hooks/filters for overriding this will still work.
747
+ * Added pmpro_save_membership_level and pmpro_membership_level_after_other_settings hooks to be able to add fields to the new/edit membership level page.
748
+ * Fixed some more warnings and notices.
749
+ * Updated checkout page to use pmpro_isLevelFree() in logic to display recaptcha or not.
750
+
751
+ = 1.4.1 =
752
+ * Fixed critical bugs with PayPal Express.
753
+ * When a PayPal cancellation returns error "11556" (The subscription must have status "active" or "suspended".) I am cancelling the membership without an error. Most likely the PayPal subscription was already cancelled on the PayPal side.
754
+ * No longer trying to cancel a subscription with the gateway if a membership/order doesn't have a subscription_transaction_id. (It was a initial payment only membership probably.)
755
+
756
+ = 1.4 =
757
+ * Rewrote how gateways are handled to make it easier to add and manage new gateway options.
758
+ * Added Stripe as a gateway option. (http://www.stripe.com)
759
+ * Added a "confirmation message" field to the level editor that is shown on the confirmation page after checking out. The message is added to the text that can be filtered using the pmpro_confirmation_message hook.
760
+ * Now applying "the_content" filters on the confirmation message on the confirmation page. e.g. wpautop will be run on the text to automatically add paragraphs.
761
+ * Now showing the level description on the checkout page. You can use this code to remove the description from the checkout page: https://gist.github.com/2323424
762
+ * The description and confirmation fields of the membership level editor now use WP Editor fields with full WYSIWYG support.
763
+ * Fixed the logic around setting the $pmpro_display_ads global, used by the pmpro_displayAds() and pmpro_hideAds() functions.
764
+ * Fixed bug with recaptcha logic.
765
+ * Updated /pages/checkout.php to use wp_login_url function for login link.
766
+ * Small changes to pmpro_changeMembershipLevel function to support deleting users when they cancel their account.
767
+ * Added the pmpro_member_links_top and pmpro_member_links_bottom hooks so you can add links to the "Member Links" list of the account page. Just output an a tag wrapped in a li tag. (May tweak this to build an array of links that can be filters, but this is good for now.)
768
+ * Fixed some more notices.
769
+
770
+ = 1.3.19 =
771
+ * Rewrote the pmpro_login_redirect function. It's cleaner now. Important: there was a pmpro_login_redirect hook in there that was fairly redundant with the core login_redirect hook. I've renamed the pmpro hook to pmpro_login_redirect_to because I had a hook with the same name (pmpro_login_redirect) used in a different place to control whether or not PMPro redirects the register page to the levels page. Having one hook for two things is a bad idea. It seems like more people were using the hook for controlling the registration redirect, so I left that one alone and renamed these.
772
+ * Changed PMPro page creation to set all membership pages as subpages of the membership account page. This results in nicer menus for themes that add all top level pages to the menu.
773
+ * Updated the checkout page to submit to "" (itself) instead of echoing the checkout page URL here. (Since we can have multiple checkout pages.) This also fixes from SSL conflicts that may crop up on the checkout page.
774
+ * Updated the priority of a few actions/hooks so the "besecure" https stuff gets run as soon as possible. Before it was possible that some URLs could be written out with http: on an HTTPS page before PMPro had a chance to fix things. You should have fewer SSL errors on the checkout page to deal with now.
775
+ * Added an option on the payment settings page to "nuke" http: links on all secure pages. This option can add time to your page loads, but will ensure that all http: links for your domain are replaced with https: links.
776
+ * Allowing multiple pages to use the [pmpro_checkout] shortcode so you can create multiple checkout pages. This is good if you want a separate templated checkout page for each membership level or product you have.
777
+ * You can now add a pmpro_default_level custom field, set to the id # of the level you want, that will be used if you navigate directly to a checkout page without setting a level.
778
+ * Added some stuff to support adding shipping fields via hooks. Add this plugin to your site, edit, and activate to add shipping to your checkout: https://gist.github.com/1894897
779
+ * Removed the price from the description sent to PayPal. The DESC field is limited to 127 characters and must match up across API calls. So there is a good chance the price would get truncated which could be confusing. This was a kind of hack anyway. PayPal should show the price data it has. Not sure why it won't. The price is still reviewed on the review page of your site though.
780
+ * The recaptcha code now checks for a previous error before changing pmpro_msg to "All Good".
781
+ * Fixed warning in pmpro_has_membership_access(). Fixed a bunch of other warnings here and there.
782
+ * Rewrote pmpro_updateMembershipCategories() just to be cleaner
783
+ * Added pmpro_state_dropdowns filter. If you return true, the state field will become a dropdown with US states. Use the pmpro_states and pmpro_states_abbreviations filters to change the array of states used.
784
+
785
+ = 1.3.18.1 =
786
+ * Added the new email .html templates to svn.
787
+
788
+ = 1.3.18 =
789
+ * Fixed some warnings: admin bar warning that showed up on admin pages; warning issued by pmpro_setOption(); warning in pmpro_hasMembershipLevel(); warning in billing update; warnings on the user edit page; warnings in the getTax method of the order class; warnings in save method of order class.
790
+ * Added a pmpro_checkout_confirm_email filter that can return false to hide and not require the "Confirm E-mail" field at checkout.
791
+ * Added a pmpro_checkout_confirm_password filter that can return false to hide and not require the "Confirm Password" field at checkout.
792
+ * If the PMPRO_DEFAULT_LEVEL constant is set, traffic on the levels page is redirected to the checkout page. This redirect no longer forces HTTPS.
793
+ * Moved the pmpro_paypalexpress_session_vars hook call so it will run even if existing users are checking out (upgrades, etc).
794
+ * Added some confirmation emails for admins: (1) for new user signups, (2) when an admin changes a member's level, (3) when a user cancel's their membership, and (4) when a user update's their billing information. New email templates (ending with "_admin.html") have been added to the /email/ folder of the plugin.
795
+ * Added new email settings to enable/disable the new admin emails. They will be enabled by default on install and upgrade to 1.3.18. The settings are on the email tab of the PMPro settings.
796
+ * Added a couple hooks to the checkout page to have more control over where you add fields, etc. pmpro_checkout_before_submit_button and pmpro_checkout_after_billing_fields.
797
+
798
+ = 1.3.17.1 =
799
+ * Fixing activation bug from 1.3.17.
800
+
801
+ = 1.3.17 =
802
+ * Updated pmpro_hasMembershipLevel() and [membership] shortcode to allow passing a level like "-5" which will return true if the user does NOT have level #5.
803
+ * Updated how PMPro notifications are retrieved and shown on the PMPro admin pages. We're using admin-ajax to call the pmpro_notifications function which uses WP's HTTP API to call the www.paidmembershipspro.com server. Only the PMPro version number is passed to check if a notification should be shown. This method shouldn't slow page load since the javascript is called using jQuery's ready function. If the PMPro server is unavailable, you'll get a JS error instead of a PHP one.
804
+ * Fixed warning on discount codes page. Fixed some other warnings.
805
+ * Updated expiration/trial crons to avoid blank ('') and zero ('0000-00-00 00:00:00') DB values in addition to NULLs. (Some backup programs will incorrectly export NULL dates as '' which could be interpretted as 1/1/1970... meaning the membership has expired.)
806
+ * Fixed bug where "Billing Information" was shown on the account page for some free levels.
807
+
808
+ = 1.3.16 =
809
+ * Moved the SSL Seal box lower on the payment settings page.
810
+ * Made dashboard menu and admin bar menus consistent.
811
+ * Fixed bug with selecting categories when adding a new level.
812
+ * Fixed bug where the user was sometimes redirected to the add level page after adding a level.
813
+
814
+ = 1.3.15 =
815
+ * Fixed SSL handling on the billing page for members without an order.
816
+ * Removed single quotes from shortcode examples on page settings page. Doh! (Thanks, Caps)
817
+ * Added Multisite/Network FAQ item.
818
+ * Updated the payments settings page to convert tax rates like 7 into 0.07. (Tax rates > 1 are divided by 100.)
819
+
820
+ = 1.3.14 =
821
+ * Added pmpro_show_cvv filter to hide the CVV from the checkout and billing information pages.
822
+ * Updated the billing page to use the pmpro_required_billing_fields like the checkout page does.
823
+ * Updated the Authorize.net integration to not pass an empty CVV if the value is empty. Authorize.net will still throw an error if you require CVV via your gateway settings. If you update your settings and PMpro to not require a CVV, you won't get an error.
824
+ * Passing the level cost to PayPal Express through the description.
825
+ * The billing page doesn't require SSL now if the gateway for the order was PayPal Express. A link to PayPal is shown instead of the form. (Be sure to remove the "becesure" custom field from your billing page if it has one and you don't want this page served over SSL.)
826
+ * Fixed bug where the membership level name wasn't being passed to Authorize.net in the description field for the order.
827
+ * Added a second paramter ($tags = true) to the pmpro_getLevelCost function. If this is false, strip_tags is run on the cost before returning it. (By default we wrap the prices in <strong> tags which is not good for passing to PayPal for example.)
828
+ * Some bug fixes for updating billing against Authorize.net.
829
+
830
+ = 1.3.13 =
831
+ * Fixed warning on checkout page. (Thanks Caps!)
832
+ * Fixed bug in PayPal Express checkout that resulted in trying to load the confirmation page over SSL (which would break on some servers). (Thanks Caps!)
833
+ * Updated getTaxFromPrice method of order class to allow for better filtering, by level, etc. The pmpro_tax filter now passes the $tax amount, $values (array with price passed and other values), and $this (the order object). It's a little clunky, but must be for backwards compatibility. Custom tax example here: http://www.paidmembershipspro.com/2012/02/custom-tax-structure-using-the-pmpro_tax-hook/
834
+ * Removed all TAXAMT NVP parameters in PayPal Express calls. Including these would sometimes introduce errors during checkout. The tax amount is still included in the total amounts passed. Not sure what impact dropping the TAXAMT property will have on reporting in PayPal. I don't believe their tax reporting is the best anyway. Maybe we can build a tax report into PMPro.
835
+
836
+ = 1.3.12 =
837
+ * Fixed bug in members list pagination on sites installed in a subdirectory.
838
+ * Now swapping out the PayPal Express checkout button if the level is free or becomes free with a discount code. (Thanks, Caps!)
839
+
840
+ = 1.3.11 =
841
+ * Fixed bug with cancelling a user's membership through the admin.
842
+
843
+ = 1.3.10 =
844
+ * Fixed the links in the discount code table.
845
+ * pmpro_hasMembershipLevel(0) and [membership level="0"] will once again return true for non-members. (This broke whent he pmpro_has_membership_level filter was added.)
846
+ * WP 3.3.1 testing. (Looks good!)
847
+
848
+ = 1.3.9 =
849
+ * Added a "pmpro_has_membership_level" filter ($r = apply_filters("pmpro_has_membership_level", $r, $user_id, $levels);) which can be used to override the default behavior here.
850
+ * Fixed the pmpro shortcodes to allow content above and below the shortcodes on the membership pages. (Thanks, Bluewind!)
851
+ * Now setting the user's first and last name to the billing first and last name after checkout.
852
+ * Added billing first/last name, billing address, and phone number to the members list screen and CSV export.
853
+ * Removed email header/footer code from email class because sometimes it was added twice. Now it is added by the pmpro_send_html function in paid-memberships-pro.php for all emails (WP or PMPro) if a header or footer file are found in your theme folder.
854
+ * Added a pmpro_after_phpmailer_init. (The old hook pmpro_after_pmpmailer_init had a typo -- pmpmailer instead of phpmailer.) I left the old hook in for backwards compatibility.
855
+
856
+ = 1.3.8 =
857
+ * Fixed a bug with canceling memberships. Important Note: User requested cancellations were not being forwarded to PayPal and Authorize.net in the past couple updates. Please double check your members lists with your payment gateway subscriptions. Sorry for the inconvenience.
858
+ * Fixed a bug in the billing update form.
859
+ * Wrapped some output on the billing update form in esc_attr.
860
+ * Now sorting countries alphabetically if international orders are turned on.
861
+ * Updated the membership-billing page to show country and long form fields if enabled via the hooks pmpro_international_addresses and pmpro_longform_address. (These were only showing up on the checkout form before.)
862
+
863
+ = 1.3.7 =
864
+ * Added "expiration" field to user profile page. Updated the email class to include information on expiration dates in the admin change emails.
865
+ * Added "pmpro_profile_show_membership_level" and "pmpro_profile_show_expiration" filters which will hide those fields from the edit profile screen if false is returned.
866
+ * Added a pmpro_getMembershipLevelForUser($user_id) function and replaced some redundant code in a few places where we query the DB for this. Maybe we'll have a membership level class as some point. Makes sense now.
867
+ * Fixed bug where the wrong price for levels was showing up on the edit profile page in the admin. (It would show the current user's level info instead of the edited user's info.)
868
+ * Cleaned up a few more warnings, etc.
869
+
870
+ = 1.3.6 =
871
+ * Changed a few split() calls to explode() to avoid warnings.
872
+ * Fixed a couple other warnings/notifices.
873
+ * Updated account page to hide the change billing info link if the user doesn't have an active subscription or signed up with PayPal Express.
874
+ * Added a filter pmpro_paypal_express_return_url_parameters which can be used to add parameters to the ReturnURL when checking out with PayPal Express. Return an array of key, value pairs. { return array("option" => "1"); }
875
+
876
+ = 1.3.5 =
877
+ * Important update to Authorize.net processing code to account for the "credit card expires before the start of this subscription" error that comes up. For levels/discount codes with no trials or only free trials/initial payments, the subscription setup with Authorize.net starts the day of checkout and a free trial is tacked on for 1 period vs. setting up the subscription one period out. One period is added to the billing limit as well, if applicable. Check the blog for more information.
878
+ * Important update for PayPal Website Payments Pro users. When using PayPal WPP, the user will have an option to checkout via PayPal Express as well. PayPal requires this and now we support it.
879
+
880
+ = 1.3.4 =
881
+ * Swapped the $ in the levels page code for $pmpro_currency_symbol.
882
+ * Changed the membership shortcode to apply the_content filters to the return value instead of just wpautop. This allows shortcodes within that shortcode and other filters to be run on the content. (Let me know if issues arrise from this.)
883
+ * Wrapped some post variables in checkout and billing preheaders with trim()
884
+ * Now voiding authorizations with Authorize.net. (The plugin will authorize $1 before setting up a subscription without an initial payment.)
885
+ * Now voiding an initial payment with Authorize.net if the subscription setup fails.
886
+ * Now refunding an intial payment with PayPal if the subscription setup fails.
887
+ * Added a "pmpro_checkout_after_level_cost" to add fields or arbitrary code after the level cost description on the checkout page.
888
+ * Added Diner's Club, EnRoute, and JCB as credit card options. Make sure you congiture your Gateway/Merchant account to accept these card types as well.
889
+
890
+ = 1.3.3 =
891
+ * Fixed bug where country field was resetting to default when there were errors with the checkout form submission. (If you templatized your checkout page and have international addresses enabled, you will need to add $bcountry to the globals setup at the top of your checkout template .php)
892
+
893
+ = 1.3.2 =
894
+ * Fixed issue introduced in 1.3.1 where checkout page would not redirect to HTTPS when it should have.
895
+ * Fixing issues with slashes in addresses/etc in the checkout form.
896
+ * Updated the PMProEmail class to use the wp_mail function instead of use PHPMailer directly. (Thanks VadaPrime: http://wordpress.org/support/topic/plugin-paid-memberships-pro-wp_mail?replies=6#post-2449672)
897
+ * Fixed some more notices and warnings.
898
+
899
+ = 1.3.1 =
900
+ * Fixed automatic page creation, which broke in the last update.
901
+ * Added hook pmpro_checkout_level which allows you to tweak the $level object before checkout, e.g. to change pricing for upgrades.
902
+ * Added hook pmpro_checkout_start_date which allows you to change the start date of a membership before checkout. (preheaders/checkout.php)
903
+ * Added hook pmpro_profile_start_date which allows you to change the start date of a membership that is sent to the gateway. (classes/class.memberorder.php)
904
+ * Cleaned up some notices and warnings. Will hopefully finish the remaining ones next update.
905
+ * Removed some old tinyMCE code that wasn't in use anymore. FYI, WP 3.3 will have a way to include visual editors on other pages, so we may add it to the description field of the membership levels.
906
+ * Updated order class to send phone and email to Authorize.net when creating subscriptions. The charge/authorize API support international phone numbers, but the ARB API does not. So if a customer enters an international phone number (or other phone number over 10 characters), the number will be sent for any initial payment/charge, but not for the subscription setup.
907
+ * Fixed where !!discount_code!! was not being parsed out in emails.
908
+
909
+ = 1.3 =
910
+ * Added a filter pmpro_login_redirect. You can return false to allow users to signup via the default WP login page.
911
+ * Member CSV export no longer limiting to 15 members.
912
+ * Correctly adding code_id to the pmpro_memberships_users table on signup. View here for retroactively updating your users tables in case you intend to use that value for advanced functionality.
913
+ * Changed URL to send IPN checks for live PayPal instances from www.live.paypal.com to www.paypal.com.
914
+ * Updated getfile.php to work when WP is installed in a subdomain.
915
+ * Added links to individual settings tabs in the WP menu.
916
+ * Changed the architecture of the settings pages which used to all be coded in the membershiplevels.php page. Each settings page has its own script now. I removed the pmpro-data.php service and have the pages submit to themselves now. This won't impact how things work, but will make it easier for me to develop going forward.
917
+
918
+ = 1.2.10 =
919
+ * Added pmpro_confirmation_message hook to change the output on the confirmation page without having to templatize it. The filter passes the constructed html string with the confirmation message and a second parameter containing the order/invoice object if it is a paid membership.
920
+ * Added a pmpro_checkout_boxes hook that can be used to output extra fields and other content in the middle of the checkout page.
921
+ * Now showing 2 decimals places for the tax rate when showing a membership level's cost.
922
+
923
+ = 1.2.9 =
924
+ * IMPORTANT fix so new user email addresses are properly captured when using PayPal Express.
925
+ * rewrote the IPN handler to use the WordPress HTTP API for better compatibility.
926
+ * added extra id to tables and fields for easier styling. (let me know if you have suggestions for small changes like these that can save you from having to templatize a page)
927
+ * fixed query in readiness check function.
928
+ * Authorize.net doesn't support international phone numbers, so we're not sending them to Authorize.net anymore.
929
+
930
+ = 1.2.8 =
931
+ * Ordering levels by id (ascending) on the levels page now. Added a "pmpro_levels_array" filter that can be used to reorder the levels or alter the levels before displaying them on the levels page. The array of levels is the only parameter.
932
+ * Added expiration date to the member list and export.
933
+ * Showing a member count on the member list page.
934
+ * Added filter to change subject lines for PMPro emails. (pmpro_email_subject) The filter's first paramter is the subject, the second parameter is an object containg all of the email information. There are also filters for pmpro_email_recipient, pmpro_email_sender, pmpro_email_sender_name, pmpro_email_template, amd pmpro_email_body.
935
+ * Added an RSS feed from the PMPro blog to the dashboard.
936
+ * Now only showing the discount code field at checkout if there are discount codes in the database. Can be overriden by the pmpro_show_discount_code filter.
937
+ * Cancelling with PayPal now properly updates status to "cancelled".
938
+ * No longer trying to unsubscribe from PayPal or Authorize.net if there is no subscription ID to check against (e.g. when the user was manually added to a membership level) or if the last order does not have "success" status (e.g. they already cancelled).
939
+ * Removed PHP short tags (e.g., <?=$variable?>) for wider compatibility.
940
+
941
+ = 1.2.7 =
942
+ * Fixed bug with non-USD currencies.
943
+ * Fixed bug with phone number formatting.
944
+
945
+ = 1.2.6 =
946
+ * Fixed bug with discount codes showing up in emails, confirmation pages, and invoices.
947
+ * Added currency option to gateway settings.
948
+
949
+ = 1.2.5 =
950
+ * PayPal Express support! PayPal Express requires just a verified PayPal Business account (no monthly fees from PayPal).
951
+ * Fixed a bug when plans with a "cycle number"/billing frequency that was greater than 1 (e.g. every 4 months). Before the first payment was being scheduled 1 day/month ext out instead of e.g. 4 months out... resulting in an extra payment.
952
+ * Added some hooks to support international orders: pmpro_international_addresses, pmpro_default_country, pmpro_countries, pmpro_required_billing_fields. Example code to support international credit cards: https://gist.github.com/1212479
953
+
954
+ = 1.2.4 =
955
+ * VERY IMPORTANT BUG FIX: The getMembershipLevel function of the MemberOrder class had an error where the membership level object was not being created properly during signup and so * recurring subscriptions were not being created *. This update fixes the bug. Thanks to mvp29 for catching this.
956
+ * Fixed another bug that was causing warnings on some setups, e.g. WAMP server for Windows.
957
+ * Fixed a bug that would show warnings when visiting a login page over HTTPS.
958
+ * Fixed membership pricing wording for certain cases, e.g. every 4 months for 4 more payments.
959
+ * Fixed a bug in the email generation for order confirmations when discount codes were used. This will no longer freeze the screen.
960
+
961
+ = 1.2.3 =
962
+ * Fixed an error in the DB upgrade code that was keeping the "enddate" from being added to new members' records.
963
+
964
+ = 1.2.2 =
965
+ * Added pmpro_skip_account_fields hook. This value is used to determine if the username/password accounts fields should show up at checkout. By default, it is shown when the user is logged out and not shown when logged in. The hook allows you to return true or false to override this behavior. If the fields are skipped while no user is logged in a username and password will be automatically generated for the new user after checkout.
966
+ * You can delete discount codes now from the admin.
967
+ * Added a hook pmpro_level_cost_text to allow you to override how the cost is shown on the checkout page. Obviously don't abuse this by showing a different price than what will be charged. Be careful if you change your membership levels pricing to update your filter if needed. The hook passes the text generated by the pmpro_getLevelCost(&$level) function and also a level object which is prepopulated with levels pricing and expiration settings already adjusted for any discount codes that may be in affect.
968
+ * Added expiration settings for levels. You can set an "expiration number" and "expiration period" for any level now. e.g. "6 months" or "180 days". You can also alter expiration settings via discount codes. Expirations will be useful for offering free trials which don't require a credit card... and other scenarios you guys have come up with. A script is run once a day using WP Cron that checks for any membership that has ended and then cancels that membership. The user will lose access and the subscription setup in your payment gateway will be canceled.
969
+ * Users can "extend" a membership that is set to expire via the Membership Account page.
970
+ * Added a hook pmpro_level_expiration_text to allow you to override how the expiration information is shown on the levels and checkout pages. Again don't abuse this by showing a different expiration than is real. Be careful if you change your expiration settings to update your filter if needed. The hook passes the text generated by the pmpro_getLevelExpiration(&$level) function and also a level object which is prepopulated with levels pricing and expiration settings already adjusted for any discount codes that may be in affect.
971
+ * Added an error check if the MySQL insertion of the membership level fails. This happens after the user's credit card/etc has already been charged. The plugin tries to cancel the order just made, but might fail. The user is adviced to contact the site owner instead of trying again. I don't want to scare you. We test the checkout process a lot. So assuming that the code hasn't been tampered with and there isn't an internet outage in the microseconds between the order going through and the database being updates, you should never run into this. Still it's nice to have, just in case.
972
+ * Fixed a bug that may have caused the billing amount to show up incorrectly on the Membership Account page.
973
+ * Added the discount code used to the confirmation page, invoices, and invoice emails.
974
+ * Now sending notification emails to members 1 week before their trial period ends (if applicable). A WP cron job is setup on plugin activation. You can disable the email via the pmpro_send_trial_ending_email hook.
975
+ * Now sending notification emails to members 1 week before their membership expires (if applicable). A WP cron job is setup on plugin activation. You can disable the email via the pmpro_send_expiration_warning_email hook.
976
+ * An email is sent when a membership expires. A WP cron job is setup on plugin activation. You can disable the email via the pmpro_send_expiration_email hook.
977
+ * Note: Right now users cannot "extend" a membership that is about to expire without first canceling their current membership. I plan to add "membership extensions" for these cases, but it's a little complicated and I didn't want to hold up this release for them. So Real Soon Now.
978
+
979
+ = 1.2.1 =
980
+ * Fixed bug where non-member admins would be redirected away from the "All Pages" page in the admin.
981
+
982
+ = 1.2 =
983
+ * Fixing some wonkiness with the 1.1.15 update.
984
+ * Fixed "warning" showing up on discount code pages.
985
+ * Tweaked the admin pages a bit for consistency.
986
+ * Added screenshots and FAQ to the readme.
987
+ * Figured we were due for a bigger version step.
988
+
989
+ = 1.1.15 =
990
+ * Discount Codes Added!
991
+ * Removed some redundant files that slipped into the services folder.
992
+ * Fixed the !!levels!! variable for message settings of the advanced tab.
993
+ * Changing some ids columns in tables to unsigned.
994
+
995
+ = 1.1.14 =
996
+ * Now encoding #'s when sending info via Authorize.net's API. This may prevent some address conflicts.
997
+
998
+ = 1.1.13 =
999
+ * No longer adding "besecure" custom field to the billing and checkout pages. You can still add this manually to selectively require SSL on a page. If you are trying to do a free membership without SSL, you will have to make sure the besecure custom field is deleted from the Membership-Checkout page, especially if you are upgrading from an older version of PMPro.
1000
+ * Added a filter before sending the default WP welcome notification email. Return false for the "pmpro_wp_new_user_notification" hook/filter to skip sending the WP default welcome email (because in many cases they are already getting an email from PMPro as well).
1001
+
1002
+ = 1.1.12 =
1003
+ * Revenue report on members list page. (Rought estimate only that doesn't take into account trial periods and billing limits.)
1004
+ * Enabling weekly recurring payments for Authorize.net by converting week period to 7 days * # months.
1005
+ * Improved error handling on checkout page.
1006
+ * Now running "pmpro_after_change_membership_level" actions after the "pmpro_after_checkout" action. Previously this hook was only called when a membership level was changed via the WP admin.
1007
+ * Won't complain about setting up a Payment Gateway if you only have free membership levels.
1008
+ * The "besecure" custom field is not added to the billing or checkout by default anymore when you run the "create the pages for me" option in the settings. Whether or not to use HTTPS on a page is now handled in the preheader files for each page (see below).
1009
+ * The plugin won't force SSL on the checkout page anymore unless the membership level requires payment. If your checkout page is still running over HTTPS/SSL for free membership checkouts, make sure the "besecure" custom field has been deleted on your checkout page. You can use the "besecure" custom field or the "pmpro_besecure" filter to override the plugin's decision.
1010
+ * The plugin won't force SSL on the cancel page anymore. Again, you can override this using the "besecure" custom field or the "pmpro_besecure" filter.
1011
+
1012
+ = 1.1.11 =
1013
+ * Removed some debug code from the invoice page that might have shown on error.
1014
+ * Added check to recaptcha library code incase it is already installed. (Let's hope other plugin developers are doing the same.)
1015
+ * Removed the TinyMCE editor from the description field on the edit membership level page. It was a little buggy. Might bring it back later.
1016
+
1017
+ = 1.1.10 =
1018
+ * added a hook/filter "pmpro_rss_text_filter"
1019
+ * added a hook/filter "pmpro_non_member_text_filter"
1020
+ * added a hook/filter "pmpro_not_logged_in_text_filter"
1021
+ * adjusted the pmpro_has_membership_access() function
1022
+ * added a hook/filter "pmpro_has_membership_access_filter"
1023
+ * updated the hook/filter "pmpro_has_membership_access_filter_{post-type}"
1024
+ * removed the "pmpro_has_membership_access_action_{post-type}" hook/action
1025
+ * update invoice page to handle case where no invoice is found
1026
+
1027
+ = 1.1.9 =
1028
+ * You can now set individual posts to require membership without assigning them to a category.
1029
+ * Fixed bug with the confirmation email during signup.
1030
+ * Fixed a CSS bug on the cancel membership page.
1031
+
1032
+ = 1.1.8 =
1033
+ * Fix for login/registration URL rerouting.
1034
+ * Added members list to admin bar menu.
1035
+ * Added warning/error when trying to checkout before the payment gateway is setup.
1036
+ * Fixed some error handling in the order class.
1037
+ * Fixed a bug that occurred when processing amounts less than $1.
1038
+
1039
+ = 1.1.7 =
1040
+ * Fixed bugs with http to https redirects and visa versa.
1041
+ * Fixed redirect bugs for sites installed in a subdomain.
1042
+
1043
+ = 1.1.6 =
1044
+ * Fixed MySQL bug showing up on some users add membership level page.
1045
+
1046
+ = 1.1.5 =
1047
+ * Required fix for PayPal Website Payments Pro processing. Please update.
1048
+ * Fixed bug with pagination on members list.
1049
+ * Fixed bugs with errors thrown by MemberOrder class.
1050
+ * Updated login/registration URL rerouting.
1051
+
1052
+ = 1.1.4 =
1053
+ * Custom Post Types default to allowing access
1054
+ * Fixed login_redirect code.
1055
+ * Added pmpro_login_redirect filter for when members login.
1056
+
1057
+ = 1.1.3 =
1058
+ * Getting ready for the WP plugin repository
1059
+ * License text update.
1060
+
1061
+ = 1.1.2 =
1062
+ * Added hooks to checkout page for customizing registration fields.
1063
+ * Fixed bug in pmpro_getLevelCost();
1064
+ * Another CCV/CVV fix for Authorize.net.
1065
+ * License text update.
1066
+ * Admin notices are loaded via Ajax now.
1067
+
1068
+ = 1.1.1 =
1069
+ * Added honeypot to signup page.
1070
+ * Updated pmpro_add_pages to use capabilities instead of user levels
1071
+ * Fixed checkboxes in admin screens.
1072
+ * Now checking that passwords match on signup.
1073
+ * Properly sending CCV/CVV codes to Authorize.net.
1074
+
1075
+ = 1.0 =
1076
+ * This is the launch version. No changes yet.