WP-Members version 3.3.7 will be released the evening of November 2, 2020. This is a minor update release with no database changes, so it is possible to rollback if necessary. Here is an overview of what is contained in this release:
Updates to User Export
With questions pertaining to user export, one of the most common questions is “How do I export all users?” The plugin has always had an “Export All” button on the Users > All Users page, but in order to keep from cluttering the bulk menu area of the page, it has only been in the bottom group. In order to hopefully make things more intuitive, this version adds the “Export All” to the top group as well.
In an improvement that may not be as noticeable, I have updated the default export filename to use YYYY-MM-DD in the date format. Honestly, I thought this had been done long ago, but someone pointed out that it was still in another format. Mind you, this is just the date format for the filename, but it’s still something I felt needed to be corrected. This will probably only affect you if you run some automated processing looking for the old filename, and if necessary, you can filter your own custom file name using wpmem_export_args.
This version also fixes a bug if no users are selected for export (when using the “export” action from the bulk menu). Note that the bulk action only exports the selected users. Use the export all button for exporting all users.
WooCommerce Integration Updates
A lot more users continue to integrate WP-Members with WooCommerce – and that’s great! I will continue to work on improvements to this. In this version, I’ve updated to incorporate the “checked by default” property for WP-Members custom fields to be integrated when used in the WooCommerce registration at checkout. This feature did previously work in the WooCommerce registration via “My Account” but the form building of the checkout form is different and did not incorporate this option. This update corrects that.
I also added a new conditional function to the API – wpmem_is_woo_active() for checking if WooCommerce is activated on the current site. You can use this in your customizations. I’ll be using it in the core plugin for adding features specific to WooCommerce in future releases.
Other Improvements
wpmem_sanitize_array() API function adds a “type” argument to identify the data type to be sanitized. Previously, it only sanitized as text. Now you can also specifically sanitize for integers.
wpmem_sanitize_field() can now sanitize mutli-select, multiple checkbox, textarea, email, file, image, and number fields. Use: wpmem_sanitize_field( $data, $type ) where $type is multiselect|multicheckbox|textarea|email|file|image|int|integer|number.
The feature setting for confirming emails has been revised to “Confirmation Link” instead of “activation”. This is to prevent confusion with moderated registration, which uses “activation” as a term, but is a totally separate process.