Releases: strangerstudios/pmpro-roles
Releases · strangerstudios/pmpro-roles
1.5 - 2024-10-29
- SECURITY: Improved security and escaping of strings.
- ENHANCEMENT: Improved compatibility for Paid Memberships Pro V3.0+ logic.
- ENHANCEMENT: Defaulting to the "New User Default Role" setting when no role is selected within the membership level settings. This will dynamically change based on the default WordPress setting.
- ENHANCEMENT: Allows creation of custom level roles for each membership level at any time if the role does not already exist.
- ENHANCEMENT: Deletes the
pmpro_draft_role
role when the plugin is deleted or delete roles and deactivate option is selected from the plugins page. - REFACTOR: Refactored some code to use built-in methods available from Paid Memberships Pro and older versions to support backwards compatibility.
V1.4.2 - 2022-12-12
- ENHANCEMENT: Improved UI for role selection in the edit level settings.
- BUG FIX: Fixed issue where fatal error was being caused when Paid Memberships Pro was deactivated.
V1.4.1
- SECURITY: Escaping and stripping slashes of text.
- ENHANCEMENT: Improve UI and UX of role selection in the level settings page.
- ENHANCEMENT: Improved coding standards and legibility of functions.
- BUG FIX/ENHANCEMENT: Improved handling of default roles in certain cases (i.e. default role was selected).
V1.4
- BUG FIX/ENHANCEMENT: Reworked function that assigns user roles for Paid Memberships Pro V2.5.8+. Fixes an issue with Multiple Memberships Per User and WooCommerce.
- ENHANCEMENT: New filter added 'pmpro_roles_after_role_change'. This allows developers to hook in during the role assignment process and run other code.
V1.3.2
- ENHANCEMENT: Improved logic around changing level and assigning roles.
V1.3.1
- BUG FIX: Fixed issue where accidentally removed administrator role from edit user profile page while plugin is active.
V1.3
- ENHANCEMENT: Added options to level settings area to choose which roles members should receive when purchasing a level.
- ENHANCEMENT: Supports members having multiple roles, and integration for Multiple Memberships Per User Add On.
- ENHANCEMENT: Added localization (translations) and escaped all front-end strings.
- ENHANCEMENT: Improved coding standards and docblocks for all functions.
- ENHANCEMENT: New filter added for when member cancels, allows developers to set a unique user role when a member cancels. Filter: 'pmpro_roles_downgraded_role'
- ENHANCEMENT: New filter added to allow developers to add/remove roles to the membership level settings checkboxes. By default this excludes the admin role. Filter: 'pmpro_roles_downgraded_role'.
- REFACTOR: Reworked the delete_level function. Logic is still the same.
v1.2
- BUG FIX/ENHANCEMENT: Adding the "read" capability to all custom level roles by default. You can filter custom role capabilities using the
pmpro_roles_default_caps
filter. - BUG FIX: Repaired issue where the "Delete Roles and Deactivate" link would show when the plugin was inactive.