还没有用过 Paid Memberships Pro ？目前最新版为 v126.96.36.199 ，已通过 WordPress 5.7.2 兼容测试。
Paid Memberships Pro
WordPress 版本：4.7 或更高版本
标签：ecommerce, members, memberships, subscriptions, User Registration，
1、方式一：进入网站后台（/wp-admin/），转到【插件】 =>【安装插件】并搜索 “Paid Memberships Pro”。找到之后，单击 “安装” 即可。
2、方式二：从 WordPress.org 下载到 paid-memberships-pro.zip 压缩文件包。然后转到【插件】 =>【安装插件】 =>上传压缩包进行安装。
3、安装完毕后，可通过 WordPress 网站后台的左侧【插件】菜单选择启用。
4、如果您有任何 Paid Memberships Pro 问题，请到 Paid Memberships Pro 支持论坛中发帖，获取帮助。
如果您是从网站后台全新安装的 Paid Memberships Pro 且左侧翻译进度已是 100% ，那么可能目前已经有提供此插件的中文语言包，如果没有可通过手动安装的方式来更新翻译。
目前插件已上传至 WordPress.org 插件目录，您可以通过网站后台【插件】=【安装插件】=搜索【wpfanyi】找到，然后安装即可。
2、通过 WP 后台自动更新；
已翻译和校对过的 Paid Memberships Pro 中文语言包我们会定期提交至 WordPress Translate ，您将可以在网站后台收到翻译更新提示，前提是已安装了 Paid Memberships Pro 。
3、通过 FTP 手动上传；
在本站下载到 paid-memberships-pro-zh_CN.zip 即最新版的 Paid Memberships Pro 中文语言包，解压后可得到两个文件，
这是基于 WordPress 的系统语言路径，注意，要能正常使用，需要看下语言文件是否正确，文件名必须是 paid-memberships-pro-zh_CN.mo 才行。
操作完毕后，到网站后台的 Paid Memberships Pro 设置页面刷新即可看见变化。
1、下载的 .zip 语言文件无效？
① 从本页面下载的 paid-memberships-pro-zh_CN.zip 内【文件没有前缀】的则为无效文件或尚未添加到翻译系统中；
② 上传后未生效或依旧为英语，若翻译完成度为【 30% 以下】则尚处于翻译准备阶段，仍需等待，其他问题请通过薇晓朵 Paid Memberships Pro 论坛发帖联系处理。
2、.po 和 .mo 有什么区别？
- paid-memberships-pro-zh_CN.po 是可编辑文件，如需查看可将文件拖放至浏览器中看到源代码。
- paid-memberships-pro-zh_CN.mo 是已编译的 Paid Memberships Pro 程序语言文件，可以被 WordPress 系统识别，也就是您网站语言显示所用的文件。
3、.po 和 .mo 都需要上传吗？
在 Paid Memberships Pro 中真正生效的语言文件是 paid-memberships-pro-zh_CN.mo，而 .po 为可编辑文件是否上传由您自行决定， WPfanyi.com 均有提供。
当然可以，要切换语言，只需要在 WordPress 后台 => 设置 => 常规 =>站点语言，进行选择即可。已上传的语言包不会影响所有系统语言，仅在您当前网站设置为【简体中文】时生效。
5、Paid Memberships Pro 语言包会过时吗？
肯定会过时，每当 Paid Memberships Pro 有版本更新都会需要进行新的翻译工作，所以请了解这是需要长期维护和进行的工作，如果 wpfanyi.com 对您有用，请协助推广我们！
由于近年来 WordPress 中文语系的翻译进程缓慢，同时包括 Paid Memberships Pro 在内的一大批优秀的主题、插件都没有提供中文版本，这对中国区用户造成了很多不便。
WordPress 翻译（WPfanyi.com）就是为了解决这一基本需求而存在。我们的目的是以中国人最熟悉的方式组建一个 WordPress 本地化翻译团队。
本站的账号体系与 Weixiaoduo.com 互通，若已有账号请直接【登录】或【免费注册】。
1、【加入团队】若您有一定的英语基础，和充足的空闲时间，请发送邮件到 wpfanyi#feibisi.com (将#替换为@) 告知想要加入 Paid Memberships Pro 中文翻译项目；
2、【分享翻译】若您已经对最新版的 Paid Memberships Pro 做了翻译及校对，请通过 Paid Memberships Pro 翻译系统导入语言包，以便志愿者和编辑进行审阅校正。
3、【成为管理】通过【加入我们】表单提交申请可成为 Paid Memberships Pro 翻译系统的翻译编辑；
1、先在 wpfanyi.com 上完成翻译和校对工作，然后导出语言包；
2、导入至 translate.wordpress.org 系统做审批；
3、审批通过自动释放语言包，对所有 Paid Memberships Pro 中文用户分发；
我们希望可以通过这几年的努力，让 WordPress 中文生态可以变得更加繁荣。
在使用 Paid Memberships Pro 的过程中如果遇到问题需要帮助，请到薇晓朵 Paid Memberships Pro 中文支持论坛发帖获取帮助，会有专业技术人员回复。
做为国内领先的 WordPress 综合服务平台，薇晓朵构建了一系列的基础设施以便为中国的 Paid Memberships Pro 用户提供服务，在提供免费支持的同时也有更多商业服务可选。
薇晓朵官方提供了一个全局搜索功能，涵盖了超过 100 多个 WordPress 中文资源及教学站点，您可以执行 Paid Memberships Pro 全局搜索获得更多信息；
本站由薇晓朵云平台接入维护，提供长期稳定的 WordPress 技术支持。
如果您想要将自己公司信息或者商业广告显示在此页，请考虑捐赠和赞助 WPfanyi.com ，以便让我们可以有更充足的资源和资金来做这些免费但有意义的事情。
以下为 2019 年度赞助商，欢迎访问相关站点获取更多信息。
1、Paid Memberships Pro 中文翻译是免费的吗？
完全免费，从现在到以后都是，只要这款源程序存在于 WordPress.org 上，那么 WPfanyi.com 提供的 Paid Memberships Pro 中文语言包都是免费的。
2、为什么要赞助 WordPress 中文翻译？
Paid Memberships Pro 是开源软件，您的公司、团队可以无限制的应用在商业项目上，既可以帮您盈利现在还能有更好的中文体验，这是互利共生的良性关系。
为了让 WPfanyi.com 能够长期健康的发展，我们接受商业赞助和关联性广告投放，广告内容应与 WordPress 或网站、互联网相关，积极健康符合《中华人民共和国广告法》相关标准。
产品更新日志一般会包括 Paid Memberships Pro 安全更新和问题修复，如果不清楚您目前所用的版本包含哪些新功能和 bug 修复，可在此处查询。
188.8.131.52 – 2021-05-12
- BUG FIX/ENHANCEMENT: Updated pmpro_changeMembershipLevel() to return null if the user’s level is not changed. For the past 2 vesions, we’ve been returning true in these cases, which caused PMPro to send emails to the admin when the edit use page was saved, even if there was no level change. This change has been backported to versions 2.5.8 and 2.5.9.
2.5.9 – 2021-05-05
- ENHANCEMENT: Adjusting style for prices and price parts shown on the frontend.
- ENHANCEMENT: Adjusting HTML for links in the Orders table in the dashboard.
- BUG FIX: Reverted the change to the pmpro_is_checkout() function. Since we default to the first available level, calling pmpro_getLevelForCheckout() was causing pmpro_is_checkout to return true on ALL pages. This disrupted a lot of functionality.
- BUG FIX: Fixed warnings in the pmpro_getLevelAtCheckout() function.
- BUG FIX: Fixed issue where “All Time Sales” was showing up as 0, even when there were sales.
2.5.8 – 2021-04-30
- ENHANCEMENT: Added
pmpro_membership_content_filterfilter to let other plugins change how PMPro filters member content.
- ENHANCEMENT: Improved de_DE email template translation. (Thanks, biker238 on GitHub)
- ENHANCEMENT: Added
- ENHANCEMENT: Improved display of prices on invoices and added pmpro_display_price_parts function and filters so plugins like the upcoming AvaTax add on can add subtotals to the price displays.
- ENHANCEMENT: Added a pmpro_after_all_membesrhip_level_changes hook that fires at the end of the page load and can be used to process all membership changes in bulk.
- ENHANCEMENT: The “User” column on the orders page now shows the username and email.
- ENHANCEMENT: Added a pmpro_stripe_create_subscription_array filter. (Thanks, ermGit on GitHub)
- BUG FIX/ENHANCEMENT: pmpro_change_level returns true now if the function is called to change a user’s level to one they already have.
- BUG FIX/ENHANCEMENT: No longer calling $order->updateTimestamp() on orders adminpage.
- BUG FIX/ENHANCEMENT: Updated conditional to check ‘street’ instead of ‘name’ when displaying billing address on Invoice/Confirmation.
- BUG FIX/ENHANCEMENT: Improved localization and added missing strings to translation.
- BUG FIX/ENHANCEMENT: Updated to use `get_user_locale1 to load localization.
- BUG FIX/ENHANCEMENT: Now Preserving existing values for
category__not_inwhen filtering search and archive queries.
- BUG FIX/ENHANCEMENT: Fixed sorting of the Membership Level column on the Users List table in the WP admin dashboard.
- BUG FIX/ENHANCEMENT: Added a pmpro_sort_levels_by_order function and using it in various places to make sure levels are listed in the order they are in on the PMPro settings page.
- BUG FIX/ENHANCEMENT: Added an extra check in the pmpro_is_checkout function that helps with issues that were coming up in some add ons.
- BUG FIX/ENHANCEMENT: The level cache now takes into account the $include_active parameter.
- BUG FIX/ENHANCEMENT: The CSS class is now properly added to the body tag when a PMPro page block is used on a page.
- BUG FIX/EHNANCEMENT: Better timezone handling in sales reports.
- BUG FIX/ENHANCEMENT: Fixed a few places where we might think a free order was paid if using a currency with more or less than 2 decimal places.
- BUG FIX: Fixed deprecated jQuery functions in pmpro-admin.js.
- BUG FIX: Fixed warning for a missing/deleted level in the pmpro_post_classes function.
- BUG FIX: Default
pmpro_longform_addressto true on Billing Information page.
- BUG FIX: Fixed
- BUG FIX: Fixed variables passed to the
- BUG FIX: CZK currency should have 2 decimals.
- BUG FIX: Avoiding a redirect loop if the login page is deleted. (Thanks, George Stephanis)
- BUG FIX: Fixed the password reset link in new user notification email when not using pretty permalinks.
- BUG FIX: Fixed issues with password reset URLs on multisite networks.
- BUG FIX: Fixed the issue where sales weren’t showing up on report charts sometimes on the 31st of the month.
2.5.7 – 2021-03-10
- ENHANCEMENT: Added a pmpro_checkout_message filter that can be used to filter error messages shown at checkout.
- BUG FIX/ENHANCEMENT: Now making sure some billing address fields are available for the billing failure emails sent during the PayPal IPN handler.
- BUG FIX/ENHANCEMENT: Fixed issues where HTML entities were shown in level prices in some places when using certain currencies. All prices are sent through a special pmpro_escape_price function that allows div, span, and sup tags with id and class attributes. Also removed from unneeded small tags and grey coloring of prices in certain spots.
- BUG FIX: Now cancelling membership when a SUBSCRIPTION_CANCELED message is sent to the Braintree webhook handler. In the past, we incorrectly sent the payment failed email instead.
- BUG FIX: Fixed display issues with the Require Membership block. The level select field has been swapped with a list of checkboxes.
- BUG FIX: Fixed warnings that occurred when processing failed payments in webhook and IPN handlers.
- BUG FIX: Fixed our Braintree class so we will only attempt to update a user’s credit card and address when the getCustomer method is called at checkout or during a billing update.
- BUG FIX: Fixed issue where refreshing the checkout review page when using PayPal Express caused the associated order to be updated again. Now the order status is updated to review and only updates again when the user confirms.
- BUG FIX: Avoiding warnings when the pmpro_url function is used if the PMPro pages haven’t been set up yet. (Thanks, Thomas Sjolshagen)
- REFACTOR: Updated the pmpro_getSpecificMembershipLevelForUser( $user_id, $level_id ) function so both fields are required. Will still default to the current user if null is passed for the $user_id.
2.5.6 – 2021-03-05
- SECURITY: Now sanitizing and escaping the
orderparameter when filtering the users table in the dashboard. (Thanks, Gen Sato)
- BUG FIX/ENHANCEMENT: Now hiding the ApplePay/GooglePay “Payment Request” buttons when the main checkout form is submitted. This helps to prevent double checkouts.
- BUG FIX: Fixed missing membership data in the billing failed email.
2.5.5 – 2021-02-22
- SECURITY: Better sanitization of parameters on some REST API endpoints.
- SECURITY: Now showing reCAPTCHA field at checkout even for logged in users.
- ENHANCEMENT: Added find_billing_address() method to the MemberOrder class. This will look for the address on the last order with the same sub id or in user meta.
- ENHANCEMENT: Better styling for invoices shown on the frontend.
- ENHANCEMENT: No longer forcing column width % in the members list table.
- ENHANCEMENT: Added a pmpro_doing_webhook action that is fired at the beginning of our webhook/IPN handlers.
- ENHANCEMENT: Added a pmpro_membership_level_after_billing_details_settings hook to the edit membership level page. This hook should now be used to add billing related settings.
- BUG FIX/ENHANCEMENT: Allowing order total to be set to 0, even if there is a subtotal and tax amount.
- BUG FIX/ENHANCEMENT: Stripe checkout fields will now use the language set in the Stripe settings.
- BUG FIX/ENHANCEMENT: The URL check in our notifications code now accepts arrays (e.g. to see if a URL has one of a group of top level domains). This fixes a warning some may have seen in error logs.
- BUG FIX: Fixed issues where totals on PayPal recurring payments were sometimes incorrect if both an mt_gross and amount field were passed via IPN.
2.5.4 – 2021-01-28
- ENHANCEMENT: Bump license year 2021 – 10 years.
- ENHANCEMENT: Now passing billing street in
- ENHANCEMENT: Prefixed our pmpro_stripeResponseHandler function to avoid conflicts.
- ENHANCEMENT: Added getRealPaymentTransactionId method to PayPal Express gateway class to recover a missing transaction ID.
- ENHANCEMENT: Added
pmpro_checkout_before_formaction to hook anything before the membership checkout form.
- ENHANCEMENT: Added avatar as a valid field type for the [pmpro_member] shortcode.
- ENHANCEMENT: Changed license key field to text type and unmasked. Masking implied the key was hashed before saving which is not true.
- ENHANCEMENT: Added
pmpro_discount_code_usedaction hook for when a discount code is used.
- ENHANCEMENT: Stripe will now pull billing address info for recurring orders from webhooks.
- BUG FIX/ENHANCEMENT: Improved user interface, error handling, and messages in the frontend password reset process.
- BUG FIX/ENHANCEMENT: Added a space between state and zip code in billing info.
- BUG FIX/ENHANCEMENT: Now rounding amount sent with Stripe payment request button.
- BUG FIX/ENHANCEMENT: Improved
pmpro_check_plugin_versionfunction to also check a specific value of the
- BUG FIX/ENHANCEMENT: Added
pmpro_membership_ordermetatables to uninstall process.
- BUG FIX/ENHANCEMENT: Escaped things in SQL queries in 2Checkout INS service handler.
- BUG FIX/ENHANCEMENT: Cleaned up levels page template and added MMPU compatibility.
- BUG FIX/ENHANCEMENT: Fixed pagination and export issues with a discount code filter on the Orders admin page.
- BUG FIX/ENHANCEMENT: Prefixed our
pmpro_stripeResponseHandlerfunction to avoid conflicts with other Stripe code that may not be prefixed.
- BUG FIX/ENHANCEMENT: Cleaned up conditionals and escaping improvements in the
- BUG FIX/ENHANCEMENT: Fixed deprecation notices for sites running PHP 8.
- BUG FIX/ENHANCEMENT: Improved SQL query format in the applydiscountcode service.
- BUG FIX: Fixed issues with ReCAPTCHA v2 and certain gateways.
- BUG FIX: Fixed bug where blog name was not showing in Admin Activity email.
- BUG FIX: Improved incorrect PHP doc blocks.
- BUG FIX: Fixed an issue on some sites where password reset link in email was incorrect.
- BUG FIX: Fixed level change issues during 2Checkout checkout.
- BUG FIX: Fixed issue where
checkout_levelsREST API endpoint could return the wrong initial payment
- BUG FIX: Fixed undefined notice for timestamp variable in the Stripe gateway class.
- BUG FIX: Avoiding warnings when user ids are in the memberships_users table, but a user doesn’t exist.
- BUG FIX: Now setting the correct value for membership_id in the admin change emails.
2.5.3 – 2021-01-26
- SECURITY: Fixed indirect object reference vulnerability where order information, including customer names, email addresses, and order numbers could be accessed by non-admin WordPress users. (Thanks, WP Plugins Team)
- SECURITY: Now checking ReCAPTCHA validation before enabling the submit button on the checkout form when using ReCAPTCHA v2. This helps to keep bad actors from testing credit cards on your checkout page. We were already doing a similar check when using ReCAPTCHA v3. Further updates to rate limit credit card failures are planned.
2.5.2 – 2020-10-23
- BUG FIX: Fixed issue where the RECAPTCHA library wasn’t being loaded early enough to validate at checkout.
- BUG FIX: Fixed issue where code in the Stripe class was unsetting some required fields, even if Stripe was not being used at checkout.
2.5.1 – 2020-10-16
- SECURITY: Fixed XSS vulnerability on the Members List page of the dashboard. (Thanks, Ron Masas from Checkmarx.com)
- ENHANCEMENT: Add Ukrainian Hryvnia currency. (Thanks, Mirco Babini)
- ENHANCEMENT: Added a “non-members” option to the Beaver Build module.
- BUG FIX: Fixed issue where only USD and US were allowed with Stripe’s GooglePay/ApplePay buttons.
- BUG FIX: Fixed issue where some profile fields, e.g. those added with Register Helper, were accidentally updated or removed when accessing the frontend profile page.
- BUG FIX: Fixed issue with tracking discount code uses when using the 2Checkout gateway. (Thanks, karambk on GitHub)
- BUG FIX: No longer running excerpts through wpautop when a more tag is used.
2.5 – 2020-10-02
- FEATURE: When using the Stripe Gateway, you may now allow users to pay using Apple Pay, Google Pay, or Microsoft Pay depending on their browser. Enable this feature from the payment settings page.
- FEATURE: Added Divi Builder compatibility.
- FEATURE: Updated the Braintree Gateway class to be able to use the Braintree API for the pmpro_next_payment() function. Note, for performance reasons, you must call this method directly or enable it by hooking it up with code like
add_filter('pmpro_next_payment', array('PMProGateway_braintree', 'pmpro_next_payment'), 10, 3);
- FEATURE: Added ordermeta tables and functions. We will wait about a year for all users to upgrade before using these widespread. (Thanks, Mirco Babini)
- ENHANCEMENT: The “short” version of the level cost text for a free level is now “Free” instead of “0.00 now”.
- ENHANCEMENT: Added a
get_original_subscription_ordermethod to the MemberOrder class. This will return the first order in a subscription when called from a recurring order.
- ENHANCEMENT: Removed the old style license nags.
- BUG FIX/ENHANCEMENT: Using microtime and a static counter int to make sure our order and discount codes are unique. In the past very high traffic sites could run into duplicates if two checkouts happened at the exact same second.
- BUG FIX/ENHANCEMENT: Adjust order delete prompt to support other locales.
- BUG FIX/ENHANCEMENT: Better handling of tax amounts in recurring payments, e.g. when using the PMPro VAT Tax add on.
- BUG FIX/ENHANCEMENT: Optimized how often we hit the Stripe API when events on the checkout page could potentially update the price of checkout.
- BUG FIX/ENHANCEMENT: The checkout_levels api call now takes
- BUG FIX/ENHANCEMENT: No longer running sanitize_text_field on password fields. This would break passwords that had strings of characters resembling html tags.
- BUG FIX/ENHANCEMENT: Now warning admins if the Stripe billing period is longer than 1 year. Billing periods greater than 1 year are not allowed by Stripe.
- BUG FIX/ENHANCEMENT: Now detecting when a Stripe webhook is set up for an older version of the Stripe API and showing a notice with a link to update.
- BUG FIX/ENHANCEMENT: Adding MAXFAILEDPAYMENTS=1 to PayPal add subscription requests. This tells PayPal to cancel a subscription after the first failed payment. In our experience, the automatic retries rarely worked well. This change fixes issues with subscriptions going out of sync or users retaining access to your site when their payment has failed. Members still receive the payment failed email, which prompts users to return to the site to renew.
- BUG FIX/ENHANCEMENT: Fixing some issues where we are adding extra break tags into the password reset email. There are still some issues like this when using certain plugins. We are working on a general fix.
- BUG FIX/ENHANCEMENT: Removed the “coupon amount” field from the edit order page. These were hold outs from the 2007! ecommerce plugin PMPro was forked from. You can set the pmpro_orders_show_coupon_amounts filter to __return_true to show these fields again if you were using them for tracking things in your custom code.
- BUG FIX: Fixed MMPU compatibility when using discount codes.
- BUG FIX: No longer filtering the wp login url when on wp-login.php. This fixes issues with iThemes Security 2FA.
- BUG FIX: Fixed issues where the Stripe webhook was not being updated sometimes when clicking the button to update.
- BUG FIX: Fixed some notices and warnings when using Braintree.
- BUG FIX: Now resetting memberslist page number when changing shown level.
- BUG FIX: Now ensuring that the discount code field updates, update the Request Button price.
- BUG FIX: Fixed issue where non-pretty permalinks may break frontend password resets.
- BUG FIX: Fixed invoice links on the account page. (Thanks, Mateusz Hołtyn)
- BUG FIX: Fixed incorrect label “for” attribute for uninstall setting.
- BUG FIX: Fixed issue where some free plugins distributed by PMPro would show warnings about requiring a Plus license.
2.4.4 – 2020-09-02
- BUG FIX: Fixed fatal error that sometimes occurred on the payment settings page when using PHP 5.6 or earlier.
- BUG FIX: Fixed fatal errors that showed up on the frontend invoice page.
- BUG FIX: Fixed issue where the confirmation message was not showing up in the confirmation email if that option was checked.
- ENHANCEMENT: Added a pmpro_stripe_charge_params filter that can be used to edit or add params sent to the Stripe create charge method. (Thanks, Michael Bester)
- ENHANCEMENT: Tweaked the markup of the invoice page so the payment type information looks a little better.
= 2.4.3 – 2020-08-25
* SECURITY: Fixed a cross-site scripting vulnerability in the code that updates the Required Membership settings on a post. This vulnerability could have been used in conjunction with other security vulnerabilities to trick an admin into editing the membership settings for a page, potentially exposing members only content to non-members. It is unlikely that there was any active exploitation of this vulnerability. This issue may also have shown up as a bug on some sites using page builders, where the membership settings for a post would be cleared out when editing a post. (Thanks to the wp.org plugin review team for catching this issue.)
* SECURITY: Better escaping of variables shown in the Require Membership meta box and related SQL queries.
* BUG FIX/ENHANCEMENT: Renamed the Vietnamese language files to match what is expected.
= 2.4.2 – 2020-08-24
* SECURITY: Updated the PMPro REST API endpoints accessed via the GET method to also require appropriate capabilities to access. The membership confirmation text will be hidden from non-members and non-admins. The endpoints to check a user’s level or access to a post require the pmpro_edit_memberships capability now. You should make sure your API users have the appropriate capabilities to use the API. You can use the pmpro_rest_api_route_capabilities filter and/or pmpro_rest_api_permissions filter to change this behavior.
* BUG FIX: Fixed issues with the PMPro REST API endpoints, including the discount code and checkout level endpoints.
* BUG FIX: Fixed issue with backslashes in the display name when editing form the PMPro frontend profile page.
* BUG FIX: Fixed issue where timestamps were showing up incorrectly for recent orders shown on the dashboard page.
BUG FIX: Fixed issue where PMPro would always try to add capabilities to the administrator role, even if you removed that role for some reason.
* ENHANCEMENT: Added a pmpro_get_no_access_message() function, which can be used to show the no access messages.
* ENHANCEMENT: Added a “show_noaccess” property to the membership shortcode. When set, it will show the noaccess message to users who don’t have the levels specified.
* ENHANCEMENT: Added a pmpro_user_profile_update_errors hook, which can be used to show errors on the PMPro frontend profile page.
* ENHANCEMENT: The pmpro_set_capabilities_for_role() function now returns true or false if the caps were added in case others want to use this function and tell if it worked.
* ENHANCEMENT: You can now include links in the description of the fields you add to the PMPro advanced settings page via the pmpro_custom_advanced_settings filter.
* ENHANCEMENT: Updated the PayPal gateways to use the latest versions of the PayPal buttons.
* ENHANCEMENT: Fixed styling of the PMPro update script notice.
* ENHANCEMENT: Added the pmpro_account_membership_expiration_text filter to the expiration dates shown on the cancel page when using MMPU.
2.4.1 – 2020-08-10
- BUG FIX: Fixed issues with password resets on WP Engine hosting due to security features added by their mu-plugin.
- BUG FIX: Fixed issue where end dates were showing up incorrectly in the confirmation email sometimes.
- BUG FIX: Fixed issue where renewing memberships were extended one day less than they should have been in some cases.
- BUG FIX: Fixed issue where users without a PMPro Plus license were sometimes not getting an error when trying to update a Plus Add On.
- BUG FIX/ENHANCEMENT: Added compatibility for core auto-updates for our Add Ons which aren’t hosted in the .org repository.
- BUG FIX/ENHANCEMENT: Fixed issue where PHP sessions were set up to track ReCAPTCHA even if you weren’t using ReCAPTCHA. ReCAPTCHA is now only loaded on the checkout page. Loading sessions unecessarily would break some Varnish cache setups.
- BUG FIX/ENHANCEMENT: Updated the single invoice/order page. No longer showing the end date, which isn’t really related to the order. Showing a better status related to the order now.
- BUG FIX/ENHANCEMENT: Fixed some links to the PMPro site in the plugin admin area.
- BUG FIX/ENHANCEMENT: Now saving a hash of the Stripe secretkey when saving webhook ids. This allows us to keep track of webhook ids if you switch between gateway environments or swap your Stripe keys for some reason.
- BUG FIX/ENHANCEMENT: No longer running the Terms of Service text through wpautop. This usually just added extra spacing to your TOS. Shortcodes are rendered now though. Added a filter pmpro_tos_content so you can change the TOS content or how it is shown.
- ENHANCEMENT: Added a checkout_levels API endpoint. This will allow us to build features that adjust the price on the frontend at checkout.
- ENHANCEMENT: Added a pmpro_member_profile_edit_form_tag action to the form tag on the frontend member profile page. This is useful to set the form enctype for file uploads.
- ENHANCEMENT: Added Romanian Leu as a currency option.
- ENHANCEMENT: Added the pmpro_stripe_payment_intent_params filter. Useful if you would like to set a specific statement descriptor for the site. See https://gist.github.com/ideadude/16983fdfa0da12fc40ef36d870f4cbd0
- REFACTOR: Removed some unused methods from the Stripe class.
- REFACTOR: Removed the help pointer about the menu location change.
2.4 – 2020-07-24
- FEATURE: Now detecting if the Stripe webhook is set up correctly. You can now create or disable the webhook from the payment settings page in the WP admin dashboard.
- FEATURE: Added a link to use and set up SendWP for more reliable email sending from WP.
- BUG FIX: Fixed further issues with dates and timezones.
- BUG FIX: Fixed issue where reports would cause white screens on some server set ups. We had some report start dates set to 1960, which caused issues. (Thanks, Sam “gausam” on GitHub)
- BUG FIX: Fixed issue with the query to find expiring memberships that happened on certain MySQL setups.
- BUG FIX: Fixed issue that was caused if other code called wp_login_url() too early.
- BUG FIX: Fixed an error in the is_login_page() function.
- BUG FIX: Fixed a fatal error that was happening in PHP 5.2 or earlier due to code syntax that was not supported then. We noticed a few other cases as well, but decided we won’t support PHP 5.2 consistent with WP and other plugins.
- BUG FIX: Fixed the URL used when using 2Checkout in sandbox mode.
- BUG FIX: Fixed issue where the dummy $0 orders created when using the “Stripe Updates” feature weren’t saving with the updated subscription_transaction_id. This would prevent future payments from being linked to that user and could prevent subscriptions cancellations from being synchronized. When updating to PMPro 2.4, an update script will run to try to restore these subscription_transaction_id values. However, any recurring orders that occured when the id was missing will not be added to PMPro. You will have to update them manually.
- BUG FIX/ENHANCEMENT: Showing expiration date as text when it is set as a readonly field. (Thanks, Rodmar “rodmarzavala” on GitHub)
- BUG FIX/ENHANCEMENT: Now checking if headers were already sent before trying to start the PHP session. If headers are sent before PMPro tries to start the session, there is usually another error somewhere on the WP site that needs to be fixed. But at least we aren’t adding to the confusion by trying to start the session late causing another error in the log.
- BUG FIX/ENHANCEMENT: Updated misleading hint for the PayPal Express IPN URL on the payment settings page.
- BUG FIX/ENHANCEMENT: Fixed invalid key description in the SQL in includes/setup.sql. The actually query used to set up table in PMPro was correct though. The setup.sql file is included for reference and developers who want to create the tables “manually” in MySQL.
- BUG FIX/ENHANCEMENT: The post type search filter now supports cases where post type set in WPQuery is an array.
- BUG FIX/ENHANCEMENT: Fixed warning that showed when a user with no levels visited the frontend account page.
- BUG FIX/ENHANCEMENT: Fixing warnings that would be logged at checkout in certain cases.
- BUG FIX/ENHANCEMENT: Better handling of cases where users who checked out using a gateway different from the current setting are shown a message that they cannot update their billing information. They should instead checkout again to renew their membership.
- ENHANCEMENT: Updated to use the latest version of the Stripe API and SDK.
- ENHANCEMENT: More detailed logging for Braintree webhook debug emails.
- ENHANCEMENT: Added a getTransactionStatus method to the PayPal and PayPal Express payment gateway classes. (Thanks, Mirco Babini)
- ENHANCEMENT: Added a checkout_level API call. This will be used in the future to update the price total at checking using JS and is also needed to implement support for Google Pay and Apple Pay through Stripe.
- ENHANCEMENT: Cleaned up the email settings page.
- ENHANCEMENT: Better handling of some login and password reset errors.
- ENHANCEMENT: Added links to the PMPro YouTube and Facebook profiles.
- REFACTOR: Cleaned up some code in incldues/content.php, especially around the pmpro_search_filter() function.
- REFACTOR: Removed the package-lock.json file from the repository.
2.3.4 – 2020-06-18
- SECURITY: Better escaping of values on the billing and confirmation pages.
- BUG FIX: Fixed issue where expiration dates could be set to 1 day in the past when editing a user in the dashboard if certain timezones were chosen in the General settings.
- BUG FIX: Fixed issue where users were redirected back to the /login/ page if WordPress needed them to confirm their admin email address. Users will now be taken to the default WP login page with the form to confirm their email address.
- BUG FIX: Fixed bug where the reset password link in the new user email was not filtered to go to the frontend login page if being used.
- BUG FIX: Fixed issue where some errors were not being shown when password resets failed.
- BUG FIX: Fixed bug with action links added to the orders table.
- BUG FIX: Fixed issue where empty dates would show current date in the members list.
- BUG FIX: Fixed fatal error that was happening when using some of the new API endpoints.
- BUG FIX: Timestamps returned by the Stripe API when getting the next payment date needed to be adjusted based on the site’s timezone setting.
- BUG FIX: Fixed a bug where the change password form wouldn’t show up sometimes when using the login shortcode.
- BUG FIX: Fixed notice in the PayPal IPN handler when adding notes to an order.
- BUG FIX: Fixed issue where PMPro would generate the wrong excerpt in some cases where the more tag was used but the excerpt was generated before the more tag code or blog was not yet converted to HTML. Specifically this fixes an issue with excerpts generated for AMP with the SchemaApp plugin.
- BUG FIX/ENHANCEMENT: Added an advanced setting to “Uninstall PMPro on Deletion”. You must check and save this option first or PMPro will not delete data from the DB when deleting from the plugins page. This keeps users from accidentally deleting orders and member data.
- BUG FIX/ENHANCEMENT: Now hiding the profile and change password links on the membership account page if a frontend profile page is not set and users are locked from the WP dashboard by the advanced setting.
- BUG FIX/ENHANCEMENT: Resetting the signups and cancellations report cache when there are new membership level changes.
- ENHANCEMENT: Added a pmpro_get_element_class function and filter. We now use this function when adding classes to HTML elements in our templates. The filter can be used to alter or append to the classes used in the HTML tags. This will make it easier to create code and CSS to make PMPro look better with popular themes.
- ENHANCEMENT: Added a pmpro_authorizenet_post_values filter to the Authorize.net class. An array of $post_values is passed in to be filtered along with a string for the API method about to be called.
- ENHANCEMENT: Added a pmpro_member_profile_edit_user_object_fields filter to add or remove fields from the frontend edit profile page.
- ENHANCEMENT: Now showing information about the current billing method on the update billing page. Can hide this information by having the pmpro_billing_show_payment_method filter return false.
- ENHANCEMENT: No longer saying “Great Work!” in the admin digest emails. This was especially embarrassing if you didn’t have any sales during the diget period.
- REFACTOR: Refactored some code in the CSV exports to avoid false positives by malware scanners.
- REFACTOR: Added a build_post_string method to the Authorize.net class to avoid redundant code.
- REFACTOR: Added a cancelSubscriptionAtGateway method to the PayPal Express class. This is useful if you want to cancel the subscription without cancelling the membership. (Thanks, Mirco Babini)
2.3.3 – 2020-05-13
- SECURITY: Fixed SQL injection vulnerability when logged in as an administrator and adding new orders in the dashboard. JVN#20248858 (Thanks, Kenichi Okuno of Mitsui Bussan Secure Directions, Inc)
- SECURITY: Making sure to properly escape all values on the add/edit order form in the dashboard.
- BUG FIX: Now properly setting the order status to “error” when an initial payment fails when using PayPal Express. Before the order status would be set as “cancelled”, which would count the order toward reports and make it harder to find orders that had errors. (Thanks, Mirco Babini)
- BUG FIX: Fixed issue with the PMPro logo and some other assets loading over the wrong schema (http vs https) in some cases.
- BUG FIX: Fixed issue where the chosen discount code was not shown after submitting when adding a new order through the dashboard.
- BUG FIX/ENHANCEMENT: Using “PMPro” in the admin activity email subject to keep the line shorter and avoid issues when replacing the word “member” via gettext.
- ENHANCEMENT: Added a pmpro_allow_weak_passwords filter. You can set this to return true (like this https://gist.github.com/ideadude/5a12119b9ce1c2aad87b2d69cb8f9505) to allow weak passwords on the change password and reset password pages. Note that at this time, weak passwords are still allowed on the checkout page no matter the value of this filter. We expect to change that in the future. For now, you can use our PMPro Strong Passwords plugin to force strong passwords at checkout.
- REFACTOR: Updated the logic around checking the PMPRO_IPN_DEBUG constant in the IPN handler. (Thanks, Mirco Babini)
2.3.2 – 2020-05-07
- BUG FIX: Fixed errors calling is_main_query() that came up with certain themes.
- BUG FIX: Fixed typo in the pmpro_account_profile_action_links filter.
- BUG FIX/ENHANCEMENT: Added a new force parameter to the pmpro_getAllLevels() function. This is used by the Multisite Membership Add On to fix an issue where levels were missing or incorrect on the subsites.
- ENHANCEMENT: Removed mention of the ezAdsense plugin, which has been discontinued.
- ENHANCEMENT: Added $recipient param in sendAdminActivity() function so you can send additional activity emails like this https://gist.github.com/dparker1005/6bf650370a12aef44adf8c8c26d3e906
2.3.1 – 2020-05-01
- BUG FIX: Fixed infinite redirect issue if no account page was set. Fixed a few other places where we do is_page() type checks just in case.
- BUG FIX: Fixed issue where all pages were retitled to Welcome when logged in, if no login page was set.
- BUG FIX: Fixed issue with BuddyBoss and other themes/plugins that use the_title filter with only one parameter.
- BUG FIX: Fixed error when trying to check if is_main_query in the admin or with certain themes.
2.3 – 2020-05-01
- FEATURE: Added frontend login and password reset.
- FEATURE: Added frontend user profile editing.
- FEATURE: Added [pmpro_login] shortcode and Log In Form block.
- FEATURE: Added [pmpro_member_profile_edit] shortcode and Member Profile Edit block.
- FEATURE: Added “Member Log In” widget.
- FEATURE: Added “WordPress Toolbar” Advanced Setting to hide the WordPress Toolbar from “subscriber” role.
- FEATURE: Added “WordPress Dashboard” Advanced Setting to block dashboard access for the “subscriber” role.
- FEATURE: Added new Admin Activity Email. Weekly emails to the site admin with sales stats and other info. Change how often the email is sent or disable it from the advanced settings tab.
- FEATURE: Added Beaver Builder module compatibility to restrict modules by membership level.
- FEATURE: Created new REST API endpoints and extended existing endpoints.
- FEATURE: Updated Elementor code to allow for restriction of “sections” as well.
- BUG FIX: Updated all timestamp code to be compatible with WordPress v5.4+ which fixes issues where orders could lose one hour or one day when saved.
- BUG FIX: Updated logic to filter body_class on pages with Membership Account shortcode or any “section” of the shortcode displayed.
- BUG FIX: Improved
pmpro_getAllLevelsfunction to cache even when
true. This saves multiple DB hits per page load.
- BUG FIX/ENHANCEMENT: Cancellation report now calculates based on membership enddate.
- BUG FIX/ENHANCEMENT: Fixed warnings and errors in PHP 7.4+.
- BUG FIX/ENHANCEMENT: Updated all uses of “Email” to remove the hyphen.
- BUG FIX/ENHANCEMENT: Updated to default to international addresses on Billing Information page. Fixes a bug with the State Dropdown Add-On.
- BUG FIX/ENHANCEMENT: Now treating “recurring_payment_failed” transactions from PayPal IPN as cancellations. PMPro will cancel membership and attempt to cancel the associated subscription.
- ENHANCEMENT: Added membership level class for the
PMPro_Membership_Levelobject. This is currently only used in the REST API calls, but will eventually be used whenever interacting with a membership level object or array.
- ENHANCEMENT: Added discount code class for the
PMPro_Discount_Codeobject. This is currently only used in the REST API calls, but will eventually be used whnever interacting with a discount code object or array.
- ENHANCEMENT: Now allowing all users and members access to the Membership Account page.
- ENHANCEMENT: Updating logic for all redirects from core pages like Invoices, Billing, and Cancel to allow past members to access their data. Generally more often redirecting where you would expect to in different situations.
- ENHANCEMENT: Several core frontend page style improvements for responsive displays and gateway-dependent fields.
- ENHANCEMENT: Added
getSubscriptionStatusmethod to the Stripe gateway API class. This fixes issues with the PMPro Subscription Check Add-On.
- ENHANCEMENT: Added !!levels_page_url!! and !!login_url!! as replacement variables in Advanced Settings > Message Settings. Using these by default on new installs.
- ENHANCEMENT: Improved Block Editor code and webpack configuration.
- ENHANCEMENT: Added support for
PMPRO_AUTHNET_SILENT_POST_DEBUGto “log” data to /logs/ or send an email to an email address different from the site admin.
- ENHANCEMENT: Added time fields to Memberships > Orders admin page when vieweing, updating or saving an order.
- ENHANCEMENT: Added pmpro_admin_orders_filters and pmpro_admin_orders_query_condition filters to add new filters to the orders page in the dashboard. (Thanks, Mirco Babini)
- ENHANCEMENT: Added an SVG icon to the PMPro blocks category.
- REFACTOR: Improved the Members List list table code to use a function for each column of data and support the code core WP methods for extending list tables with custom columns.
- REFACTOR: Moved all Theme My Login compatiblity code to includes/compatibility/theme-my-login.php and only loading if plugin is active.
2.2.6 – 2020-02-20
- SECURITY: Escaping the post title shown in the Terms of Service section of the checkout page.
- BUG FIX: Fixed issue where the CVV/Security Code was not being passed to Authorize.net when using that gateway.
- BUG FIX: Fixed issues with the update billing page when using Stripe.
- BUG FIX: Fixed issues with the update billing page when using the MMPU Add On.
- BUG FIX: Fixed issue where password fields would disappear when the checkout form was submitted. This behavior was required to address bugs in older versions of iOS that shouldn’t be in use any more.
- BUG FIX: No longer sending an extra cancel request to the PayPal API when processing a cancel for a PayPal Express subscription through the IPN handler.
- BUG FIX: The currency option is no longer hidden when using the check gateway.
- BUG FIX: Fixed the comparisons in the pmpro_check_plugin_version function and related notification checks.
- BUG FIX: Avoiding warnings in the sendAdminChangeEmail method if the user doesn’t have a level.
- BUG FIX: Fixed some cases where the Members List CSV export wouldn’t match the members shown in the table/search.
- BUG FIX: Fixed issue where the Members List may show the wrong count or enddate.
- BUG FIX/ENHANCEMENT: Added support for Elementor. Filtering content later so the builder’s filters can run first. Also added the ability to choose which membership levels an element should be visible for.
- BUG FIX/ENHANCEMENT: Fixed the confirmation page formatting when paying by check. Added a div with class “pmpro_payment_instructions” around the payment instructions shown on the confirmation and invoice pages.
- BUG FIX/ENHANCEMENT: Added an Oxford Comma to the the pmpro_implodeToEnglish() function.
- BUG FIX/ENHANCEMENT: Moved the Japanese Yen symbol to the left of the total instead of the right.
- BUG FIX/ENHANCEMENT: Added the pmpro_checkout_login_redirect filter, which filters the url_redirect parameter of the login link on the checkout page. This is used by some Add Ons to make sure you are returned to the checkout page properly after logging in through that link.
- ENHANCEMENT: Added the Ghanian Cedi currency.
- ENHANCEMENT: Added the pmpro_are_levels_recurring() function to help with MMPU.
- ENHANCEMENT: Improved the look and source of the CVV popup.
2.2.5 – 2020-01-05
- BUG FIX: Fixed issues with PayPal orders when using the pmpro_paypal_level_description filter.
- BUG FIX/ENHANCEMENT: Responsive update for smaller device viewports for the Membership Levels table in the dashboard.
- ENHANCEMENT: Added filters: pmpro_is_level_free, pmpro_is_level_trial, and pmpro_is_level_expiring.
2.2.4 – 2019-12-20
- BUG FIX: Fixed issue with the update billing page when using the Stripe gateway.
2.2.3 – 2019-12-09
- BUG FIX: Fixed issue where Stripe checkout failed for free levels that had their price adjusted through the donations or variable pricing add ons.
- BUG FIX: Fixed undeclared variables warnings in the members list.
- BUG FIX: Fixed the edit user links in the email sent to admins when cancelations have errors.
- REFACTOR: Removed some unused code from the members list class.
2.2.2 – 2019-11-29
- BUG FIX: Fixed issue with member search.
- BUG FIX: Fixed issue with custom columns in the members list. (Thanks, Tim Sparks)
2.2.1 – 2019-11-27
- BUG FIX: Fixed performance issues with the new WP List Table implementation of the members list.
- BUG FIX: Fixed sorting issues with the new members list.
- BUG FIX: Fixed issues with the sales report widget and breakdown by price.
- BUG FIX: Now showing an appropriate message if you search for members, levels or discount codes in the dashboard and there are no results.
- BUG FIX: Fixed bug where option to pay with PayPal wouldn’t show if paid discount code was applied to free level.
2.2 – 2019-11-22
- FEATURE: The Members List is now shown in an official “WP List Table”. Most columns are sortable. The screen options in the upper right can be used to add/remove columns. (Thanks, Thomas Sjolshagen, Paul Barthmaier, and David Parker)
- FEATURE: Showing useful notifications in the PMPro dashboard area. Notifications are shown no more than once ever 12 hours, and no more than 3 times every week. The PMPro Advanced Settings page has an option to only show security-related notifications.
- SECURITY: Better sanitizing of values in the 2Checkout INS handler.
- BUG FIX: Fixed issue since WP 5.3 where expiration dates and other dates could be off by a month after saving.
- BUG FIX: Fixed issue where Stripe orders processed through the webhook would use the current date instead of the date of the order. This was an issue if you had to rerun a webhook later.
- BUG FIX: Fixed issue level confirmation text was sometimes not shown in emails when it was supposed to.
- BUG FIX: Russian Rubles are now configured to have 2 decimals again. In practice, decimals aren’t often used for rubles and we are looking into ways to store the decimals (because gateways like Stripe need them) while showing values without decimals.
- BUG FIX: Fixed bug where the “logged in as” message would sometimes show twice on the update billing page.
- BUG FIX/ENHANCEMENT: Updated dashboard to adopt WordPress 5.3 formatting updates.
- BUG FIX/ENHANCEMENT: Updated frontend pages to improve cross-browser and cross-theme compatibility.
- BUG FIX/ENHANCEMENT: New free orders will always have the “success” status after checkout.
- BUG FIX/ENHANCEMENT: Better handling of tax values in the PayPal IPN handler.
- ENHANCEMENT: Added “Edit User” and “Edit Order” links to the admin email when a gateway subscription fails to cancel.
= 2.1.4 – 2019-10-31
* BUG FIX: Better exception handling in the Stripe gateway class for PHP 7+.
* BUG FIX: Fixing some JS issues at checkout, e.g. related to the “validateCreditCard method is not available” error.
* BUG FIX: Better messaging if the Stripe Billing Limits Add On is already installed.
* BUG FIX: Fixed cases where PMPro would email users about credit cards expiring when they had used an offsite gateway like PayPal Express.
* BUG FIX: Fixed issue where some user information was missing from the pmpro_orders_user_row_actions filter.
* BUG FIX: Fixed issues where the level confirmation text was not available in some cases.
* BUG FIX/ENHANCEMENT: Updates to the French language translation.
2.1.3 – 2019-10-14
- BUG FIX: Updating Stripe subscriptions from the edit user page will no longer cause an extra charge.
- BUG FIX: Correctly localizing the expiration date on the frontend account page.
- BUG FIX: Moved the row actions on the orders page into the correct column. (Thanks, Tim Sparks)
- BUG FIX: Fixed issue with CSV exports if the fpassthru function is unavailable.
- BUG FIX: Fixed warning that occurred when the Email Log plugin was active. (Thanks, Matty Cohen)
- BUG FIX: Fixed warning that occurred with sessions sometimes. (Thanks, Matty Cohen)
- ENHANCEMENT: Made labels and styling more consistant across settings pages.
- ENHANCEMENT: The Consent Log will go into a scrollable box if more than 10 items are in the list.
- ENHANCEMENT: Updated the copy on the license page.
2.1.2 – 2019-09-26
- BUG FIX: Fixed bug where Stripe subscriptions weren’t updated to use the new payment method when users updated their billing method on the Update Billing page. You may have users with an updated “default payment method” but their subscriptions still need to be updated manually in Stripe to use that new method. Otherwise, payments will fail. This is fixed going forward.
- BUG FIX: Fixed bug where PMPro Blocks were sometimes not loading on the edit post page.
- BUG FIX: Fixed bug where discount codes would cause ugly warnings to be shown on the checkout page.
- BUG FIX: Fixed bug where custom templates would sometimes not load.
- BUG FIX: Fixed issue where a warning was thrown sometimes when loading SESSION vars.
- ENHANCEMENT: Moved the License page under Memberships.
- ENHANCEMENT: Updated our UTM tracking links in various places we link to the Paid Memberships Pro website.
- ENHANCEMENT: Added some help text and links to popular add ons in a few places in the PMPro settings.
2.1.1 – 2019-09-16
- BUG FIX: Fixed issue with SCA authentications via Stripe for subscriptions with a $0 initial payment. (Thanks, mjulian87 on Github.)
- BUG FIX: Fixed issue where code was shown in the message box when applying a discount code.
- BUG FIX: The SVN repo on WordPress.org was missing a file for about 10 minutes after version 2.1 was pushed. Users who upgraded during this time may be missing that file. Updating now will restore it.
2.1 – 2019-09-13
- FEATURE: Updated Stripe integration to support Stripe v3, Stripe Elements, and their Secure Customer Authorization process.
- FEATURE: Updated how we store prices to support up to 8 decimals (e.g. for Bitcoin gateway implementations).
- ENHANCEMENT: Improved error messaging on the update billing page when a gateway doesn’t support it or the user’s current membership doesn’t have a subscription.
- ENHANCEMENT: Added a pmpro_is_checkout() function that will return true if on the PMPro checkout page or a page with the PMPro checkout shortcode or block.
- ENHANCEMENT: Showing a warning message when a user about to be deleted has a membership so admins know that existing subscriptions will be deleted at the gateway.
- ENHANCEMENT: Added a pmpro_braintree_plan_id filter in case you need to adjust plan IDs. This is useful if you have several sites running on the same Braintree account.
- ENHANCEMENT: Added a pmpro_num_expiration_years filter to adjust the number of years to include in the dropdown to set the year membership will expire.
- ENHANCEMENT: Tweaked the UI of the orders list and members list in the dashboard.
- ENHANCEMENT: Added pmpro_membership_levels_table_extra_cols_header and pmpro_membership_levels_table_extra_cols_body hooks to add columns to the members list.
- ENHANCEMENT: Showing notices to admins when categories are hidden from them on the frontend of the site.
- ENHANCEMENT: Added a pmpro_url filter to filter URLs returned from that function.
- ENHANCEMENT: Adding a pmpro_checkout_gateway-stripe or pmpro_checkout_gateway-paypal/etc CSS class to the wrapping div for payment fields to aid in styling.
- ENHANCEMENT: Using the site’s date format option when printing orders.
- BUG FIX/ENHANCEMENT: If a site has no paying levels, the test gateway will show as the “Default” gateway and we will no longer show a message about requiring gateway setup on the checkout page.
- BUG FIX/ENHANCEMENT: Updated Russian Ruble definition to have 0 decimals and use as the thousands separator. (Thanks, Airat Halitov)
- BUG FIX/ENHANCEMENT: Using add_query_arg when generating IPN URLs to avoid issues on sites that aren’t using pretty permalinks or have moved their admin directory.
- BUG FIX/ENHANCEMENT: Fixed issue on advanced settings page where clicking on labels didn’t check the corresponding check boxes.
- BUG FIX/ENHANCEMENT: Updated our pmpro_generateUsername() function to be a bit smarter.
- BUG FIX/ENHANCEMENT: Now using wp_generate_password() when choosing a random password for a user (e.g. when using the Sign Up Shortcode add on or the $skip_account_fields global).
- BUG FIX/ENHANCEMENT: Setting autocomplete to false on the “fullname” honeypot field. This will prevent user’s with certain autocomplete tools from accidentally filling it out.
- BUG FIX/ENHANCEMENT: Now sending name and email fields to PayPay (using Website Payments Pro) even if no address was captured.
- BUG FIX/ENHANCEMENT: More specific CSS selectors for checkout form elements to make sure errors are highlighted/etc with different themes.
- BUG FIX: Fixed issue where the first 2000 or so orders might be skipped when exporting orders on large sites.
- BUG FIX: Fixed issue with setting custom trials on discount codes.
- BUG FIX: Fixed issue in the SQL query in the pmpro_calculateInitialPaymentRevenue() function. This function is deprecated, but still used by some custom code.
- BUG FIX: Fixed issue where default templates would fail to load if a custom template was specified.
- BUG FIX: Fixed fatal errors that could happen when using the PMPro REST API endpoints.
- BUG FIX: Fixed bug where the invoices page would sometimes show data for the current (admin) users instead of the user the invoice was for.
- BUG FIX: Fixed bug where the membership stats graphs would sometimes show up blank.
- BUG FIX: Now falling back to using readfile() if fpassthru() doesn’t existing.
- BUG FIX: Fixed issue where the from name and email were not set properly if the Only Filter PMPro Emails setting was checked. (Thanks, mjulian87 on GitHub)
- BUG FIX: Fixed several error handling issues with the Cybersource gateway integration.
- REFACTOR: Added unit testing and a started on coverage of some functions in includes/functions.php. (Thanks, Mike Auteri)
- REFACTOR: The JS function askfirst is now prefixed as pmpro_askfirst.
2.0.7 – 2019-05-30
- BUG FIX: Fixed issue where the profile start date would sometimes be set incorrectly on the Stripe subscription.
- BUG FIX: Fixed issue where the membership shortcode would not work properly if more than one level name was given.
- BUG FIX: Fixed issue where an incorrect email address was sometimes set in the confirm email field on the update billing page. (Thanks, Jessica Thomas)
- BUG FIX/ENHANCEMENT: Fixed placement of the hr tag above the user fields at checkout for consistency.
- ENHANCEMENT: Set the priority on the Require Membership meta box to “high” so it appears higher in the right sidebar.
2.0.6 – 2019-05-30
- SECURITY: Now using wp_safe_redirect when possible, especially in includes/login.php where the user-provided redirect_to URL parameter is used. (Thanks PluginVulnerabilities.com)
2.0.5 – 2019-04-25
- BUG FIX: Fixed fatal error on return from 2Checkout.
- BUG FIX: Removed error when installing PMPro via WP-CLI.
- BUG FIX: Fix database upgrade error on localhost environment. (Thanks, codezz on GitHub)
- BUG FIX: Fixed issue where the credit card expiring email didn’t include user info because the user ID wasn’t passed in properly. (Thanks, David Cervantes Caballero)
- BUG FIX: Fixed typo on edit level page. (Thanks, Theuns Coetzee)
- BUG FIX: Fixed bug with daily revenue reports not showing up in some cases.
- BUG FIX: Now checking before cancelling a Stripe subscription at the gateway to see if it has already been cancelled.
- BUG FIX/ENHANCEMENT: Now caching the query results in pmpro_getMembershipLevelsForUser(). This improves performance, especially when there are many posts on one page to check membership for. (Thanks, Seagyn Davis)
- BUG FIX/ENHANCEMENT: Now sending display_name to the $data array passed to PMPro email filters. (Thanks, David Cervantes Caballero)
- BUG FIX/ENHANCEMENT: Now searching for the last order with “success” or “pending” status on the Billing page.
- BUG FIX/ENHANCEMENT: Added pmpro_checkout_preheader_before_get_level_at_checkout and pmpro_checkout_preheader_after_get_level_at_checkout action hooks. Using pmpro_checkout_preheader_before_get_level_at_checkout to start the session earlier now.
- BUG FIX/ENHANCEMENT: Removed the “membership_code_id” and “membership_code” as field options for the member shortcode. These weren’t working and it’s unclear what would be meant to ask for a user’s discount code since a user could have several orders with or without discount codes. Added “membership_description” and “membership_confirmation” instead.
- BUG FIX/ENHANCEMENT: Filtering the password reset message to make sure the link still works in all cases when we convert emails to HTML.
- BUG FIX/ENHANCEMENT: Added reCAPTCHA v3 and invisible reCAPTCHA support. It is recommended sites using Stripe or Braintree update to the reCAPTCHA v3 option. Read more here: https://www.paidmembershipspro.com/pmpro-update-2-0-5/
- REFACTOR: Now running the pmpro_billing_preheader hook after the jquery.creditCardValidator script is enqueued in preheader/billing.php to match how we do it in preheader/checkout.php. (Thanks, Rafe Colton)
2.0.4 – 2019-01-14
- BUG FIX: Fixed warning in code added in 2.0.3 that could cause issues at checkout.
- BUG FIX: Setting priority of pmpro_check_admin_capabilities to 5 to ensure it runs before dashboard redirect.
- BUG FIX: Removed duplicate id attribute on the Membership Account page “cancel” action link.
- BUG FIX/PERFORMANCE: No longer enqueueing frontend.blocks.js which had no functional code, but loaded a lot of Gutenberg JS that wasn’t needed on the frontend. When/if our blogs have frontend JS, we will load it again, but also make sure the dependencies are correct.
- BUG FIX/PERFORMANCE: No longer loading blocks.style.css. These frontend styles were redundant with CSS in css/frontend.css.
- NOTE: The SVN repository was missing the 2.0.3 tag when that update went out. Some users may have updated or tried to update and not gotten the correct files for 2.0.3. Everyone should update to 2.0.4, which is Gucci.
2.0.3 – 2019-01-11
- BUG FIX: Fixed issue where code in the Stripe gateway was cancelling old subscriptions early if users renewed with a different gateway. NOTE: There was a fix for this in version 2.0, but it wasn’t implemented fully.
- BUG FIX: Filtering pmpro_other_order_ids_to_cancel to make sure the current checkout’s order doesn’t get cancelled. This started happening in version 2.0 since we started setting the user_id on orders for existing users before the checkout was fully processed. This fix along with the one above and others will fix cases where users were being cancelled immediately after checkout.
- BUG FIX: Fixed warning on edit levels page by defaulting $confirmation_in_email to 0.
2.0.2 – 2019-01-10
- BUG FIX: Fixed issues when using non-US currencies. Using the pmpro_round_price function in a few places it was needed. Prepared for a later update that will increase the number of decimals on certain columns in the DB to 8 to support currencies like Bitcoin, but shelving the actual DB update for version 2.1.
- BUG FIX: Fixed issue where existing users who checked out could run into problems. Added a getMembershipLevelAtCheckout method to the MemberOrder class and using that during checkout. The getMembershipLevel method would see the user_id property of the order (added to orders at checkout in version 2.0) and lookup the level data from the pmpro_memberships_users table instead of using the pmpro_level global. Then gateways like PayPal Express (but others also) would use the wrong data when making calls to pmpro_isLevelRecurring/etc.
- BUG FIX: Fixed bug where a notice to deactivate the Better Logins Report plugin could show up for users who couldn’t deactive the plugin.
- BUG FIX: Fixed bad translation in the membership_expired.html file of the French translation.
- BUG FIX: Fixed some strings on updated reports that weren’t wrapped for translation.
2.0.1 – 2019-01-03
- BUG FIX: Fixed issue where the PMPro dashboard and reports pages would appear blank if certain other plugins were active.
2.0 – 2018-12-31
- SECURITY: Fixing how we escape things in the Memberships report SQL queries.
- BUG FIX: Fixed issue where code in the Stripe gateway was cancelling old subscriptions early if users renewed with a different gateway.
- BUG FIX: Fixed a warning on the Stripe Webhook service.
- BUG FIX/ENHANCEMENT: Removing unused images from core plugin.
- BUG FIX/ENHANCEMENT: Removed unused
- BUG FIX/ENHANCEMENT: Updated Braintree/PHP Library to 3.36.0
- BUG FIX/ENHANCEMENT: Prefixing Braintree plan name with
- BUG FIX/ENHANCEMENT: Better table naming in queries for Memberships and Sales reports.
- BUG FIX/ENHANCEMENT: Changing “blacklist” to “blocklist”.
- BUG FIX/ENHANCEMENT: Changing the appearance of the Discount Code “Apply” button on checkout to look more like a text link.
- BUG FIX/ENHANCEMENT: Now calculating the next payment date with time, not SQL.
- BUG FIX/ENHANCEMENT: Updated the pmpro_next_payment method of Stripe to check if a customer is delinquent to avoid returning a next payment date in the future if the last payment failed.
- BUG FIX/ENHANCEMENT: Saving user ID in MemberOrder when a user already exists and they are checking out via an offsite gateway.
- BUG FIX/ENHANCEMENT: Updating Stripe Webhook and PayPal IPN Handler to send the cancelled level ID for better cancellation emails.
- BUG FIX/ENHANCEMENT: Brought back the Stripe Billing limit warnings. Here is a plugin to get billing limits working with Stripe https://github.com/strangerstudios/pmpro-stripe-billing-limits/blob/master/pmpro-stripe-billing-limits.php
- FEATURE: Gutenberg / v5.0 Editor Blocks for Paid Memberships Pro pages, the Checkout Button and Membership “shortcode” functionality.
- FEATURE: Added new “Dashboard” page and adjusted the entire menu structure for “Memberships”.
- FEATURE: Created new compatibility checks and included compatibility functions for Beaver Builder, Elementor, and SiteOrigin Page Builder.
- FEATURE: Added REST API routes for post membership access, and user membership level.
- FEATURE: Added option to include the level’s Confirmation Message in the Confirmation Email.
- FEATURE: Added a filter by discount code to Memberships and Sales reports.
- FEATURE: Added a filter by discount code to the Orders admin page.
- FEATURE: Added a “Copy” option to discount codes.
- FEATURE: Now allowing you to edit or add a discount code to a single Order edit.
- FEATURE: Added the ability to export orders by discount code used.
- FEATURE: Added new file for deprecated functions or hooks.
- ENHANCEMENT: Moved “Memberships” menu page up in sidebar below Comments.
- ENHANCEMENT: Replaced the Visits, Views, Logins report with the “Better Logins Report” Add On functionality.
- ENHANCEMENT: Updating reports that use the Google Charts library to use the updated chart library (corechart.js).
- ENHANCEMENT: Reports admin page is now loading reports via the
- ENHANCEMENT: Added ability to filter membership reports for free or paid levels only.
- ENHANCEMENT: Setting a default level at checkout so that the page doesn’t redirect to the Levels page.
- ENHANCEMENT: Showing the discount code used on the All Orders and single Order edit page.
- ENHANCEMENT: Added ability to filter Orders by Free (Orders equal to $0), Paid (Orders greater than $0)
- ENHANCEMENT: Now showing the Invoice’s Order Status on the Membership Account page for orders (Paid, Pending or Refunded).
- ENHANCEMENT: Adding additional quick search links when no members are found in members list search.
- ENHANCEMENT: Added a check on the Add Ons page to hide Add Ons that are no longer supported or recommended.
- ENHANCEMENT: Improved Responsive layout of the Memberships admin area for smaller devices.
- ENHANCEMENT: Adding .gitattributes and gitignore. Important now for node stuff in particular.
184.108.40.206 – 2018-11-15
- BUG FIX: Fixed issue where Braintree would try to cancel a subscription twice if it was cancelled on the Braintree side.
- BUG FIX: Fixed bug in Braintree webhook when using certain versions of PHP.
- BUG FIX: Correct Braintree plans flagged as faulty.
- BUG FIX/ENHANCEMENT: Added Order Code to the Orders Export CSV
- BUG FIX/ENHANCEMENT: Removed another warning RE billing limits with the Stripe gateway. (Thanks, Jordan Kohl)
- ENHANCEMENT: Added the pmpro_include_pricing_fields filter.
- ENHANCEMENT: Adding IDs to action links in the account shortcode so users can target them with CSS/JS.
- ENHANCEMENT: Updated French Translation. (Thanks, Pascal)
- ENHANCEMENT: Retina logo on dashboard pages.
- ENHANCEMENT: Showing what PMPro page a page is in the Post List table of the WP dashboard.
220.127.116.11 – 2018-10-19
- BUG FIX: Fixed fatal error in the Braintree webhook that will have caused syncing issues for Braintree users.
- BUG FIX: Stopped sending the cancel subscription request to the PayPal API if we are processing the IPN request for the same subscription.
- BUG FIX: Fixed issue where the Stripe API version was shown for non-Stripe gateways on the payment settings page.
- BUG FIX: Using self:: instead of static:: in the Stripe class that could keep the pmpro_stripe_customerid from being updated.
- BUG FIX: Fixed some fatal errors in PHP 5.2. (We still recommend a minimum PHP 5.6.)
- BUG FIX/ENHANCEMENT: Removed a unnecessary hr element when viewing the table of all active memberships.
- BUG FIX/ENHANCEMENT: Cleaned up some CSS code around buttons.
- BUG FIX/ENHANCEMENT: Added formatting for the Danish Krone.
- BUG FIX/ENHANCEMENT: Removed the warning RE billing limits with the Stripe gateway. Our Stripe implementation has actually supported billing limits for a while.
- ENHANCEMENT: Added Kenyan Shilling as a currency. (Thanks, Urandu Bildad Namawa)
- ENHANCEMENT: Updated the description, url, email, and copyright info in the plugin header.
- ENHANCEMENT: Now showing a note on the pages list in the dashboard if a page is linked to a PMPro page.
- ENHANCEMENT: Improving logo and watermark in the dashboard for retina displays.
18.104.22.168 – 2018-09-10
- SECURITY: Some values used in SQL queries in our reporting code were sanitized but not later escaped via esc_sql(). All variables added to SQL queries in the reports are now wrapped in esc_sql(). The previous code was not vulnerable to any known attack, but this change hardens the code against vulnerabilities in the case other parts of the code change in the future.
- BUG FIX: Fixed issue with lost passwords when Theme My Login 7 is active. (Thanks, Jeff Farthing)
- BUG FIX: No longer sending an “error canceling the subscription” email when subscriptions are cancelled from Stripe.
- BUG FIX: Fixed issue where TwoCheckout orders were not correctly updating the TOS consent data. (Thanks, Charl P. Botha)
- BUG FIX: Fixed issue where privacy function weren’t defaulting to $current_user correctly. In practice, we were always passing a user_id anyway.
- BUG FIX/ENHANCEMENT: Changed the confirmation message to use wpautop instead of apply_filters(‘the_content’). If you were relying on shortcodes or other content that required that filter, you use add_filter(‘pmpro_level_description’, ‘the_content’) to revert this for your site.
- BUG FIX/ENHANCEMENT: Using the strict parameter of sanitize_user when getting usernames. This will prevent some special characters from being used in usernames at checkout. This is inline with WP core and other plugins. (Thanks, David Cervantes Caballero)
- ENHANCEMENT: Added a breakdown of orders at each price point to the Sales Report widget
- ENHANCEMENT: Showing the Stripe version we use on the Payment Settings page.
- ENHANCEMENT: Updated Copyright date and GPLv2 link in license.txt.
22.214.171.124 – 2018-06-26
- BUG FIX: The pmpro_ipnhandler_extend_memberships function actually needed use $user_id instead of $current_user.
126.96.36.199 – 2018-06-26
- BUG FIX: Fixed compatibility with Theme My Login version 7. (Thanks, Jeff Farthing)
- BUG FIX: Fixed missing $current_user bug in pmpro_ipnhandler_level_extend_memberships function. (Thanks, Anne)
188.8.131.52 – 2018-06-08
- BUG FIX: Fixed issue with the PayPal IPN Handler where existing users checking out for a new level would sometimes have their membership and new subscription cancelled.
- BUG FIX: Fixed PayPal IPN Handler to set the status of old levels to ‘changed’ (instead of ‘inactive’) when processing checkouts. This will improve the accuracy of reports.
- BUG FIX/ENHANCEMENT: Now checking for the recurring_payment_skipped transaction type in the PayPal IPN handler. When a payment is skipped and this message is sent, we will now fire off the failed payment email to the customer and admin. (Thanks, mjulian87 on GitHub)
- ENHANCEMENT: Removed validation info from the IPN log.
- ENHANCEMENT: Updated German (de_DE) language files.
1.9.5 – 2018-05-24
- BUG FIX: Added ‘error’ to the list of default order statuses.
- BUG FIX: Fixed issue where PayPal recurring_payment messages with status “Pending” were treated as “Failed” by our IPN handler. (Thanks, Matt Julian)
- BUG FIX: The redirect away from the billing page needed to be in the preheader instead of the page shortcode.
- BUG FIX/ENHANCEMENT: Using the pmpro_getOrderStatuses() function in adminpages/orders.php instead of redundant code there.
- BUG FIX/ENHANCEMENT: Passing the $order as a second parameter to pmpro_after_checkout when called from the PayPal IPN handler. (The $order was being passed already for “regular” checkouts.)
- ENHANCEMENT: You can now sort by the Membership Level column added to the users list in the dashboard. (Thanks, Matt Julian)
- FEATURE: Added support for the privacy features added in WP 4.9.6. Details below.
- FEATURE: Added suggest privacy page text.
- FEATURE: Added PMPro-related user meta fields, membership history, and order history to the personal data export. You can filter which user meta fields are included in the export using the new pmpro_get_personal_user_meta_fields filter.
- FEATURE: Deleting PMPro-related personal data fields when personal data is erased. The ereaser deletes a number of user meta fields (filterable through the new pmpro_get_personal_user_meta_fields_to_erase filter). A user’s membership history and order history are retained unless the user is deleted.
- FEATURE: Now saving a log of when the TOS page is agreed to at checkout. The ID and date modified of the TOS post is saved along with a timestamp of when the TOS was agreed to. This information is shown on the single order page in the admin, the orders CSV export, and on the edit user profile page in the admin. Note that this feature does not yet backport any data for existing users or ask users to re-agree to the TOS if the TOS has gone out of date.
184.108.40.206 – 2018-03-14
- BUG FIX: Updated the filters to extend membership levels to use the new pmpro_getSpecificMembershipLevelForUser() function to avoid bugs when MMPU is enabled.
- BUG FIX: Fixed cases where certain email templates were resulting in the body of the email being duplicated.
- BUG FIX: Fixed conflict with pmpro-email-templates when emails were disabled (the pmpro_email filter returns false). (Thanks, Mathieu Hays)
- BUG FIX: Now updating status on related subscription orders BEFORE canceling at gateway to avoid cases where the webhook sent by the gateway after canceling the subscription triggers further cancellation attempts.
- BUG FIX: No longer showing the “Stripe Publishable Key appears incorrect” error message if the key field is blank.
- ENHANCEMENT: Added the pmpro_getSpecificMembershipLevelForUser( $user_id, $level_id ) function for cases where MMPU is enabled and you want data about a specific membership level a user might have.
- ENHANCEMENT: Changed labels on the reCAPTCHA settings to match their current terminology: Site Key and Secret Key.
220.127.116.11 – 2018-01-04
- BUG FIX: Fixed issue where PMPro would attempt to cancel gateway subscriptions more than once in some cases.
18.104.22.168 – 2017-12-07
- BUG FIX: Avoid double-encoding the API version in PayPal Standard gateway
- BUG FIX: The update billing page now checks the gateway of the user’s last order instead of the default gateway settings in case multiple gateways are in use or the default gateway has changed.
- BUG FIX: Fixed bug where discount codes were not being applied properly if the pmpro_default_level custom field was set and used on a page.
- BUG FIX: Credit card expiration emails were being to sent to members with PayPal Express orders.
- BUG FIX: Now correctly unslashing instructions for the check gateway.
- BUG FIX: Fixed issue with creating pages from the page settings page.
- BUG FIX/ENHANCEMENT: Improved submit button and processing message position for default and RTL on checkout page.
- BUG FIX/ENHANCEMENT: Added invoice total and total billed breakdown back to confirmation and invoice single views.
- BUG FIX/ENHANCEMENT: Avoid double-encoding the PayPal API version number
- ENHANCEMENT: Improved submit button and processing message position for default and RTL on checkout page.
- ENHANCEMENT: Switched order of Publishable and Secret Key fields and added validation check.
- ENHANCEMENT: Conditionally update members list headings for expired, cancelled, or old members.
22.214.171.124 – 2017-10-31
- BUG FIX: Fixed serious bug where payment fields weren’t showing up for the Braintree gateway.
- BUG FIX: Fixed issue where Braintree webhook notifications were failing. We now allow the Braintree library to sanitize the incoming data since our sanitizing efforts were breaking the validation.
- BUG FIX/ENHANCEMENT: The webhook URL given for Braintree now goes through admin-ajax.php instead of a direct link to a php file within our plugin.
- BUG FIX/ENHANCEMENT: Updates to the Recaptcha library. (Thanks, Corin Simpson-Bryars)
- ENHANCEMENT: Made the cancelation failed error email easier to read.
1.9.4 – 2017-10-26
- BUG FIX: Fixed issue where PayPal was not working for amounts over $1000.
- BUG FIX: Non-decimal currencies now handled correctly with Stripe.
- BUG FIX: Fixed issue where updating a Stripe subscription from the edit user page could cancel the subscription once the webhook fired.
- BUG FIX: Fixed issue where “admin_cancelled” memberships weren’t being calculated correctly in membership reports.
- BUG FIX: Fixed issue where users could not drag and drop to change the order of membership levels.
- BUG FIX: pmpro_getMembershipLevelsForUser() would sometimes return duplicate levels in the array if the user had multiple active entries in the pmpro_memberships_users table.
- BUG FIX: Updated includes/metaboxes.php to call pmpro_getAllLevels() instead of relying on the $membership_levels global which is problematic.
- BUG FIX: Fixed a few strings that weren’t wrapped for translation or were using the old text domain.
- BUG FIX: Fixed redirect error that occured when the levels page was not set.
- BUG FIX: Updated getfile.php to support file names with urlencoded characters (e.g. spaces) in them. (Thanks, florent from PMPro blog)
- BUG FIX: Fixed notice when use the getfile.php script due to using add_filter instead of apply_filters in the mimetype class.
- BUG FIX: Fixed the all time views column for the logins report.
- BUG FIX: Fixed fatal error on the logins report, member shortcode and other issues when using PHP7.1+.
- BUG FIX: Fixed issue with saving arrays using pmpro_setOption()
up the lines of text.
- BUG FIX: Fixed typo in the string “Are you sure you want to do that? Try again.”
- BUG FIX: Fixed a few strings that used the wrong text domain or weren’t wrapped correclty for translation.
- BUG FIX/ENHANCEMENT: Now bundling Google’s jsapi.js file for use in the reports.
- BUG FIX/ENHANCEMENT: Fixed issue where some emails (e.g. the password reset email) would not have wpautop applied to them, crunching
- BUG FIX/ENHANCEMENT: Better checking for Theme My Login compatibility when handling login redirects.
- BUG FIX/ENHANCEMENT: Better error handling for Braintree.
- BUG FIX/ENHANCEMENT: Membership stats widget now shows first 3 levels based on level order.
- BUG FIX/ENHANCEMENT: Added the pmpro_member_shortcode_access filter
- ENHANCEMENT: Updated the Stripe PHP library to version 5.2.2 and updated Stripe to use the latest version of their API, 2017-08-15.
- ENHANCEMENT: Changed frontend pages (e.g. checkout.php) to use a div-based layout instead of tables. Important information here if you are using custom page templates or notice UI issues after upgrading:
- ENHANCEMENT: Added pagination to the discount codes page in the admin. Also sorting codes in descending order by ID. Use the pmpro_discount_codes_per_page filter to change the per page limit from 15.
- ENHANCEMENT: Updated plugin admin pages with better links to documentation and support.
- ENHANCEMENT: Updated plugin frontend pages checkout, billing, confirmation, and single invoice to remove most table based layouts.
- ENHANCEMENT: Better error message if trying to checkout using an existing user’s email address.
- ENHANCEMENT: Added the pmpro_report_levels filter to let users change levels and order of levels for the memberships.php report.
- ENHANCEMENT: Updated video and copy for readme.txt.
- ENHANCEMENT: Added user display name to Memberlist search query
- ENHANCEMENT: Added Russian Ruble as a currency.
- ENHANCEMENT: Changed the dated term “CVV” to “Security Code (CVC)” when shown on the frontend.
- ENHANCEMENT: Added .doc and .docx to the mimetype class.
- ENHANCEMENT: Added Portuguese language files. (Thanks, Secundino Correia)
- ENHANCEMENT: Updated plugin admin pages with better links to documentation and support.
1.9.3 – 2017-07-06
- SECURITY: Fixed sanitization of inputs and added nonces in several places to protect against XSS attacks.
- BUG FIX: Showing correct error message when trying to update a PMPro Plus add on with a Core license installed.
- BUG FIX: Fixed issue where subscription and payment transaction IDs were not being saved correctly when copying an order in the dashboard. (Thanks, Pippin Williamson)
- BUG FIX: Fixed fatal errors that occurred in certain PHP versions.
- BUG FIX: Fixed issue where ProfileStartDate was being calculated incorrectly in the test, check, and Cybersource gateways.(Thanks, David Parker)
- ENHANCEMENT: Added a pmpro_sanitize_with_safelist() function that is used to sanitize inputs that have a limited number of exact options.
- ENHANCEMENT: Updated the pmpro_setOption() and pmpro_getParam() functions to take a new last parameter $sanitize_function, which defaults to ‘sanitize_text_field’.
126.96.36.199 – 2017-06-13
- BUG FIX: Fixed warnings on the Network Dashboard’s sites page.
- BUG FIX: Skipping update scripts that require the Stripe library if the system doesn’t support the minimum requirements for the Stripe API. This avoids warnings and errors during upgrade.
188.8.131.52 – 2017-06-05
- BUG FIX: Fixed issues with activation on single sites.
- BUG FIX: Starting PHP sessions earlier to fix issues with PayPal/PayPal Express checkouts.
1.9.2 – 2017-06-03
- BUG FIX: Fixed issue where Braintree checkouts were failing with a CVV error when existing users checked out.
- BUG FIX: Fixed issue loading the Stripe library in PHP 5.6.
- BUG FIX: Member List CSV export was ignoring search parameter.
- BUG FIX: Discount codes weren’t being remembered during the “review” step of a PayPal Express checkout. (Thanks, Rafe Colton)
- ENHANCEMENT/FIX: Search Filter would trigger incorrectly for REST API request by slug.
- ENHANCEMENT/FIX: Didn’t always identify MasterCard cards correctly to set the CardType with some gateways.
- ENHANCEMENT/FIX: Some custom code or add ons (e.g. the Prorating and Auto-renewal Checkbox add ons) would sometimes break PayPal Website Payments Pro and PayPal Express subscriptions by trying to set the “Profile Start Date” longer than 1 year out. We now limit the Profile Start Date to 1 year out and try to squeeze up to 1 additional year into a trial if it’s not already being used. This bug affects PayPal Standard as well, but the fix is different and not included in this release.
- ENHANCEMENT: Tested up to WordPress 4.8.
- ENHANCEMENT: Made countries translatable.
- ENHANCEMENT: Improved performance via PHP $_SESSION management improvements. We now only open the session before we set session vars and close the session when we are finished with it.
- ENHANCEMENT: Added to code to stop network activation of Paid Memberships Pro. (Thanks, Paul Barthmaier)
1.9.1 – 2017-05-11
- BUG FIX: Fixed the code checking if the Stripe library is already loaded to compatibility issues with other plugins bundling the Stripe API library.
- BUG FIX: Cancel code now properly uses preg_replace when sanitizing the list of level ids to cancel.
- FIX/ENHANCEMENT: Removed test/doc code from Stripe and Braintree libraries.
- ENHANCEMENT: Now pausing the license nag for the first week of use and removed the “invalid” error if no key is being used.
1.9 – 2017-04-26
- BUG: Fixed issue with cancelling 2Checkout recurring subscriptions. Now using the payment_transaction_id to find/cancel the sale’s recurring subscription since no subscription_transaction_id is being saved.
- BUG: Fixed issue where old membership levels were not listed correctly in the cancellation email. (Thanks, Mike from Migrating Eye)
- BUG: Fixed issue where “custom trial” values were not saving for discount codes.
- BUG: Fixed issue where checkouts were still processing even if there were errors with the discount code used.
- BUG: Fixed bug where settings added via the pmpro_custom_advanced_settings were not being saved to DB unless they were prefixed with custom_.
- BUG: Fixed other formatting issues with settings added via pmpro_custom_advanced_settings.
- BUG: Fixed issue where the sendInvoiceEmail method of the email class was expecting $order->discount_code to be a string, but it was sometimes a discount code object. (Thanks, Bill Stoltz)
- FEATURE: Added the pmpro_member shortcode. See the Paid Memberships Pro website for documentation.
- ENHANCEMENT: Added pmpro_account_membership_expiration_text filter to filter the expiration text that shows ona user’s membership account page.
- ENHANCEMENT: Updated our Stripe and Braintree libraries to use their latest versions. This update allows our gateway integrations to support PHP7 and also removes support for PHP 5.2 and 5.3.
- ENHANCEMENT: The Braintree level compatibility check now also looks for a properly named plan.
- ENHANCEMENT: Better error handling when trying to update plugins that update against the PMPro license server.
- ENHANCEMENT: Improved Italian translation. (Thanks, Francesco Pezzotti)
- ENHANCEMENT: Improved German tranlsation. (Thanks, Simon)
- ENHANCEMENT: Added a Sweedish tranlsation. (Thanks, Mathias Persson)
- ENHANCEMENT: Added a “Chinese/Cantonese (Hong Kong SAR China)” tranlsation. (Thanks, Kai Chan)
- BUG: Fixed bug where credit card expiration emails would be sent to users with PayPal Express orders.
- BUG: Fixed bug when updating billing with Stripe.
- BUG: Fixed bug where the archive/search filter was not running for logged out users.
- ENHANCEMENT: Updated Finnish translations. (Thanks, JP Jakonen)
- ENHANCEMENT: Added filter for modifying the order description in Stripe. (Thanks, Rafe Colton)
- BUG: Fixed notifications.php to make sure it really only checks once per day. Also updated the URL checked to notifications.paidmembershipspro.com, which runs on its own server.
- BUG/ENHANCEMENT: Changed the pmpro_button shortcode to pmpro_checkout_button. (The old pmpro_button will also still work. checkout_button works if you have Register Helper installed.)
- BUG: Fixed bug when using a secondary gateway (e.g. PayPal Express) with Stripe as your primary gateway.
- BUG: Fixed bug with updating credit cards through Braintree.
- BUG: Fixed bug with updating credit cards through Stripe.
- BUG: Fixed SQL warnings when generating the pmpro_membership_levelmeta table. (Thanks, itibet on GitHub)
- BUG/ENHANCEMENT: Moved some update billing and checkout related code from the preheaders and page templates into the Braintree and Stripe classes.
- ENHANCEMENT: Added pmpro_billing_order filter that functions similar to pmpro_checkout_order.
- ENHANCEMENT: Added pmpro_billing_before_submit_button hook that functions similar to the pmpro_checkout_before_submit_button hook.
- ENHANCEMENT: Clicking on a report widget no longer takes you to the details page. You have to click the details button. This allows us to add additional functionality to the widgets.
- ENHANCEMENT: Updated reports widgets so the “details” button only shows if a page function is defined for that report. You can now have report widgets without details pages.
- ENHANCEMENT: You can now click on a heading in the Membership Stats report widget to see data for up to 3 of your levels. The first 3 levels per the level ordering are shown.
- BUG: Fixed issue where end dates were being set/saved incorrectly from the edit user/profile page in the dashboard.
- BUG: Fixed warnings in the Braintree PHP library. (Thanks, Travis Shivers)
- BUG: Fixed issue where the filtered $mypost object was not being used in the content filter if the post type was “page”. (Thanks, James)
- BUG: Removed the extra class=”input” attribute on the CVV field when the Stripe gateway is used. (Thanks, Rafe Colton)
- BUG/ENHANCEMENT: Changed the number of X placeholders for masked credit cards to 12 (+ the last 4 stored) instead of 13. (Thanks, Rafe Colton)
- FEATURE: The Stripe Webhook has been updated to process subscriptions cancelled from Stripe. PMPro will now cancel memberships for these users instead of sending an email to the admin.
- BUG: Fixed various bugs in the PayPal IPN handler.
- BUG: Fixed search on discount codes page in dashboard. (Thanks, Debjit Saha)
- BUG: Fixed bug in Cancellations report where all-time cancellations were always 0.
- BUG: Fixed link to payment settings on checkout notice. (Thanks, Coen Jacobs)
- BUG: Timezone magic on edit user page in the dashboard to make sure the expiration date you select is the one set.
- BUG: Swapped out deprecated uses of eregi_replace and split.
- BUG/ENHANCEMENT: Now using add_query_arg in the pmpro_url() function. (Thanks, Debjit Saha)
- ENHANCEMENT: Updating stylesheet for WordPress 4.7 and new Twenty Seventeen theme support.
- ENHANCEMENT: Now longer warning of membership levels with cycle numbers > 1 when using the Payflow Pro gateway since Payflow now supports cycle numbers (frequencies) > 1.
- ENHANCEMENT: Updated da_DK translation. (Thanks, bopdoq on GitHub)
- ENHANCEMENT: Added pmpro_include_payment_option_for_paypal filter, which can be set to false to use PayPal WPP without the PayPal Express option.
- ENHANCEMENT: Better dependency checking for Stripe and Braintree gateways.
- ENHANCEMENT: Updated IPN handler and Stripe Webhook handler to use pmpro_cancelMembershipLevel instead of pmpro_changeMembershipLevele. This improves support for the MMPU addon.
- BUG: Fixed bug when using the testing gateway.
- BUG: Avoiding issues where is_user_logged in is not yet available for the pmpro_search_filter() function. (Thanks, d_enajetic)
- ENHANCEMENT: Updated Italian translation. (Thanks again, Angelo)
- ENHANCEMENT: You can now define(‘PMPRO_USE_SESSIONS’, false); in your wp-config.php to force PMPro to skip the call to session_start. Note that PayPal Express and some addons require sessions to function.
- BUG: Fixed issue where “expiring soon” emails were sometimes sent more than needed.
- BUG: Fixed issue where PayPal Standard IPN requests were being rejected if a tax amount was set in PayPal.
- BUG: Fixed issue with Stripe subscription “updates” that were set to fire on “next payment”, e.g. if you used Stripe with levels with a non-zero trial amount. When the update processed and created a new subscription, the old subscription was not being deleted and the new subscription ID was not being saved as a new order for future tracking purposes. If you use this feature, please check in Stripe to make sure your users don’t have extra subscriptions.
- BUG: Fixed setting in PayPal/PayPal Express API calls from AUTOBILLAMT to AUTOBILLOUTAMT. This setting is set to AddToNextBilling, meaning that failed payment amounts are added to the next billing cycle’s amount if left unpaid. In most cases, a retry of the original billed amount goes through or the user’s subscription is cancelled. But just in case, this makes sure that outstanding balances are paid. (Thanks, jubstuff on GitHub)
- BUG: Fixed warnings in the setGateway method of the MemberOrder class for cases where the gateway is missing or the class file is not found.
- BUG/ENHANCEMENT: Moved the pmpro_before_change_membership_level hook to fire a little bit earlier to make it easier to determine the old level status/end date/etc before it gets updated. (Thanks, MrVibe on GitHub)
- ENHANCEMENT: Replaced the Force SSL option with an explanation if the entire site is over HTTPS. We are already ignoring the option in these cases.
- BUG: Fixed a bug introduced in 1.8.11 that kept PMPro from tracking coupon code uses. Any checkout with a discount code while running 1.8.11 won’t have properly tracked the discount code use. You may want to adjust your “uses” numbers for your codes, and hand check any reporting/etc that relied on discount codes. Users of the Sponsored Members addon will have been affected too. Discount codes will need to be made manually for any sponsor who checked out.
- BUG: Fix to the expiration warnings code. Making sure it finds all members who are expiring soon while also keeping track of when emails are sent so users don’t get too many emails.
- BUG: Fixed issue where pmpro_before_change_membership_level was running after levels had been changed.
- BUG: Fixed some warnings.
- ENHANCEMENT: Updated Italian translations. (Thanks, Angelo)
- BUG: Fixed issue introduced in 1.8.11 where the pmpro_default_level custom field was being ignored at checkout.
- BUG: Fixed bugs in DB calls made for the compatibility checks for various gateways.
- BUG: Now sending a FREQUENCY parameter for PayPal Payflow orders.
- BUG: Fixed URL used when checking for addon updates.
- BUG: Now enqueueing the jquery.creditCardValidator.js file in Billing preheader.
- BUG: Fixed issues where PayPal IPN updates would sometimes log $0 instead of the actual billing amount.
- BUG: Fixed warnings in the PayPal IPN handler.
- BUG/ENHANCEMENT: Added pmpro_checkout_level filter and now using that filter to apply the_content filters to the level description at checkout. This allows you to turn off the the_content filters (e.g. processing shortcodes) by using remove_filter(‘pmpro_checkout_level’, ‘pmpro_pmpro_checkout_level’); in a custom plugin.
- BUG/ENHANCEMENT: Using the pmpro_confirmation_message filter on the confirmation page whether there is an invoice or not. Now also adding the the_content filters to the confirmation message. You can disable this by using remove_filter(‘pmpro_confirmation_message’, ‘pmpro_pmpro_confirmation_message’); in a custom plugin.
- ENHANCEMENT: Now tracking IPN event ids in order notes for recurring orders.
- ENHANCEMENT: Added pmpro_subscription_ipn_event_processed hook to IPN handler.
- ENHANCEMENT: Added pmpro_set_message filter to edit PMPro error messages. Passes the message and type.
- ENHANCEMENT: Now listing categories in hierarchical format in the Content Settings section of Membership Levels.
- ENHANCEMENT: Added pmpro_areLevelsFree() function to check if all levels in an array of levels are free.
- ENHANCEMENT: Added pmpro_getLevelsCost() – with an s – function to get the combined cost of multiple levels in an array.
- ENHANCEMENT: Added pmpro_getLevelsExpiration() – with an s – function to get the combined expiration text for multiple levels in array.
- ENHANCEMENT: Created the pmpro_getLevelAtCheckout function that modularizes some of the logic of creating the pmpro_level global at checkout.
- ENHANCEMENT: Added pmpro_members_list_user filter used on the admin members list and members list CSV export.
- ENHANCEMENT: Added a 4th parameter $cancel_level to pmpro_changeMembershipLevel(). If set, that level will definitely be cancelled locally and at the gateway. This parameter is also passed to the pmpro_before_change_membership_level and pmpro_after_change_membership_level hook.
- ENHANCEMENT: Added a new function pmpro_cancelMembershipLevel($level_id, $user_id, $old_level_status) that acts as a wrapper to pass the $cancel_level param to pmpro_changeMembershipLevel().
- ENHANCEMENT: Updated the cancel page on the frontend to support the Multiple Memberships per User addon. All memberships are shown. You can cancel individual memberships separately. The language of the confirm button mentions memberships vs account.
- ENHANCEMENT: Added pmpro_getMemberOrdersByCheckoutID($checkout_id) function to support Multiple Memberships per User and others using the checkout_id.
- ENHANCEMENT: Added a refund($order, $transaction_id) method to the PMPro_stripe class. This will be used by the Multiple Memberships per User addon and eventually used in other areas by the core pluginn.