• Resolved Arsooni

    (@absoonoo)


    I make duplicate new role administrator has name site-admin. how add locking capability to this role?

    • This topic was modified 1 year, 11 months ago by Arsooni.
Viewing 1 replies (of 1 total)
  • Plugin Author andyexeter

    (@andyexeter)

    Hi @absoonoo,

    You’d need to modify the capabilities of this role so that it doesn’t have the manage_options capability.

    Failing that, you could change the capability that PostLockdown uses to determine whether a user can bypass protections with the postlockdown_admin_capability filter, e.g:

    add_filter('postlockdown_admin_capability', function() {
        return 'some_new_capability';
    });

    I have used the User Role Editor plugin for managing user roles and capabilities in the past and it seemed to work pretty well.

    • This reply was modified 1 year, 11 months ago by andyexeter.
Viewing 1 replies (of 1 total)
  • The topic ‘Custom user capability’ is closed to new replies.