User with capability edit_pages cannot see what user with capability manage_options doing.. so I think you don’t need filter for that.
If you need that filter, please open new issue in our Github repo.
Thanks for your quick reply, I think that I did not explain my doubt well.
What I try to do, is decide, through a filter, which role can see the log (and therefore which role can see the “activity log” in the backend menu).
In my case, I need to change “edit_pages” with “manage_options” because I have declared two different administrator levels through custom roles, and the capability “manage_options” is one of the differences between both.
Thanks!
Please open new issue in our Github for that.
Hi capiedge,
What you can very easily do is add the capability view_all_aryo_activity_log (view in code) to any user that you’d like to have the Activity Log dashboard visible for.
You can do that programmatically or even faster, using a dedicated plugin like Members (which is a must anyway.)
I hope this makes sense to you. Anyway this is how I’ve done so for my clients (which are not given the Administrator role by default, rather I create a custom role with specific, hand-picked capabilities. One of them is view_all_aryo_activity_log.)
Let us know if you’ve done it otherwise or have a better way to suggest!
Thank you Maor!
I think that a filter to change the capability (now “edit_pages”) would be a good way to complete the customization possibilities.