Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Yakir Sitbon

    (@kingyes)

    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.

    Thread Starter mafsdisseny

    (@capiedge)

    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!

    Plugin Author Yakir Sitbon

    (@kingyes)

    Please open new issue in our Github for that.

    Plugin Contributor Maor Chasen

    (@maor)

    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!

    Thread Starter mafsdisseny

    (@capiedge)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filter $menu_capability’ is closed to new replies.