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

Move capability into constant and make it configurable #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sebastianpopp
Copy link

I need the editor role to be able to edit the redirect setting on a project of mine. Currently, there is no way to change the necessary capability without it being overwritten with the next update. With my pull request, I added a constant for the capability which is set to manage_options by default. By setting

define( 'SIMPLE301REDIRECTS_CAPABILITY', 'edit_pages' );

in your wp-config.php you can change the capability without changing the plugin code. There's no change in behavior for users that do not want to change the capability.

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.

1 participant