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

Add filter to stats page in admin #19

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

Conversation

pmgarman
Copy link

The current edit_pages capability of the plugin for seeing analytics requires a user to be at least an editor, which by default is probably the correct capability. In some cases, sites may wish to allow users of the author or even contributor roles access to see stats as well. Since this is just seeing analytics, seems low risk. This filter would allow a developer to change the capability required with minimal effort, without having to add a whole UI to the settings screen.

https://wordpress.org/documentation/article/roles-and-capabilities/#edit_pages

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