Title: Custom user capability
Last modified: December 12, 2022

---

# Custom user capability

 *  Resolved [Arsooni](https://wordpress.org/support/users/absoonoo/)
 * (@absoonoo)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/custom-user-capability-2/)
 * I make duplicate new role administrator has name site-admin. how add locking 
   capability to this role?
    -  This topic was modified 3 years, 5 months ago by [Arsooni](https://wordpress.org/support/users/absoonoo/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [andyexeter](https://wordpress.org/support/users/andyexeter/)
 * (@andyexeter)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/custom-user-capability-2/#post-16309746)
 * Hi [@absoonoo](https://wordpress.org/support/users/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:
 *     ```wp-block-code
       add_filter('postlockdown_admin_capability', function() {
           return 'some_new_capability';
       });
       ```
   
 * I have used the [User Role Editor](https://en-gb.wordpress.org/plugins/user-role-editor/)
   plugin for managing user roles and capabilities in the past and it seemed to 
   work pretty well.
    -  This reply was modified 3 years, 5 months ago by [andyexeter](https://wordpress.org/support/users/andyexeter/).

Viewing 1 replies (of 1 total)

The topic ‘Custom user capability’ is closed to new replies.

 * ![](https://ps.w.org/post-lockdown/assets/icon-256x256.png?rev=3273464)
 * [Post Lockdown](https://wordpress.org/plugins/post-lockdown/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-lockdown/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-lockdown/)
 * [Active Topics](https://wordpress.org/support/plugin/post-lockdown/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-lockdown/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-lockdown/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [andyexeter](https://wordpress.org/support/users/andyexeter/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/custom-user-capability-2/#post-16309746)
 * Status: resolved