The WP-Members plugin version 3.4.5 is an extension of the changes being implemented in the 3.4 series of releases.
Password Reset
This version continues the process of making the legacy password reset obsolete and shifting to default to the new password reset link process.
If you have not already moved over to the new process, it is highly recommended that you do so. It is a smoother process, changes required are minor, and you’ll be ready for version 3.5 when the old process is removed.
Read: How to upgrade the password reset from legacy versions
New Filter Hooks
There are two new filters in this version:
- wpmem_login_form_button_rows
- wpmem_pwd_reset_email_link
New API Functions
There are several new functions added to the API for you to use in customization.
The following API functions were added for retrieving the URLs of various custom/assigned pages. These operate like the existing functions wpmem_profile_url(), wpmem_login_url(), and wpmem_register_url().
- wpmem_pwd_reset_url()
- wpmem_forgot_username_url()
The following API functions were added for membership information. These are aliases of existing functions that used _product_ as part of the stem. The addition of these aliases is for clarity as the plugin shifts to use “membership” instead of “product”.
- wpmem_get_membership_name()
- wpmem_get_membership_meta()
- wpmem_get_membership_post_list()
- wpmem_get_post_memberships()
- wpmem_get_memberships()
The following API functions were added to make it easier to add custom user views (filters) to the Users > All Users screen in the admin:
- wpmem_add_query_where()
- wpmem_get_query_where()
- wpmem_add_user_view_link()
- wpmem_get_user_view_link()
- wpmem_get_user_view_count()
Code Improvement
Instances where the deprecated function wpmem_gettext() was used were updated to use wpmem_get_text().
The wpmem_user_has_role() function was updated to no longer rely on the $current_user global as it is unnecessary. Functionally, it remains the same but with smoother operation.
Admin CSS was updated to define column widths for the WP-Members > Fields table.