Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

role problem! #5

Open
wants to merge 97 commits into
base: master
Choose a base branch
from
Open

role problem! #5

wants to merge 97 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 10, 2017

Hello joshlevinson!

Thanks for your pmpro roles plugin.

My WordPress site has a user role set up and has many more users using these roles.
When I install the paid memberships pro and pmpro roles plugin, I want it to be able to select one or more of the existing user roles to match the paid Memberships pro membership level, not just add a new one. Is it possible to add this functionality to the next update to the pmpro roles plugin?

I am looking forward to, I believe that there will be more people like your updated version.

thank you!

ideadude and others added 30 commits December 23, 2016 15:56
deactivate with a bit more cleanup. Users are given the "Subscriber" role
if they had a membership level based role before.
Bug Fix: Deactivate and delete roles plugin action link would still show after clicking this link to deactivate the plugin.

Only show this if the plugin is activated.
Enhancement: Assign default capabilities to custom pmpro_roles.
BUG FIX: delete roles and deactivate fix.
Enhancement: Assign default capabilities
Updating readme and plugin main file.
Updating to version 1.2
Removes administrator role from the list using a filter instead
Adds multiple roles to level settings
- Creates a role when creating a new level
- Bug fixed where roles weren't assigned when not using MMPU
- Update level updates role name if needed
Removed some commented out debugging code.

Adjusted the function name update_role to update_role_name to be more explicit.
ENHANCEMENT: If only one role is selected, replace the default role with that role. If more than one is selected, give multiple roles.
ENHANCEMENT: Enabled localization and escaping of strings on the front-end.

BUG FIX: Fixed an issue where selecting delete and deactivate will set user's to subscriber even if multiple roles were selected. This now only removes the pmpro_role_x if the user has more than one role assigned at the time of deactivation.

ENHANCEMENT: Added docblocks to all methods.

BUG FIX/ENHANCEMENT: Cleaned up the delete level method. (Refactored).
Updated MD file.
Replace roles instead of adding to them
ideadude and others added 30 commits August 27, 2021 11:09
Adjusting to use the core PMPro clickable and scroll box selectors.
Fixes critical error when PMPro is inactive
* Loading the class on plugins_loaded to prevent fatal error if PMPro is deactivated.
Selectors update array method; special UI for level-specific role
… hooks and not others.

* Fix an issue when PMPro isn't activated some default WP hooks weren't loading (while roles was active).
…-change

Default role removal after level change
* Updated: default to site role if no role is selected.
* BUG FIX: Fixed an issue where in some cases the draft_role is created but not removed. Now it is removed whenever you "Delete and deactivate" on the plugins installation page.
Default to site default role
Remove the draft role on plugin deletion
* Includes adjustments to WPCS, and various security (minor) improvements .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants