Title: [Plugin: Members] Checking for Capabilities
Last modified: August 20, 2016

---

# [Plugin: Members] Checking for Capabilities

 *  [Bukajec](https://wordpress.org/support/users/bukajec/)
 * (@bukajec)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-members-checking-for-capabilities/)
 * I was reading through the documentation and I don’t understand this bit:
    “In
   WordPress, you can use the current_user_can() function to check if the current
   user has a particular capability. Since you don’t know whether a user has this
   plugin installed, you might want to check first.”
 * What do you mean with user having the plugin installed? The plugin is installed
   on the server with the other wordpress files. Could somebody explain this to 
   me?
 * [http://wordpress.org/extend/plugins/members/](http://wordpress.org/extend/plugins/members/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-members-checking-for-capabilities/#post-2612656)
 * You can use current_user_can() to check whether a given user can access any or
   all of a plugin’s settings in the WP dashboard.
 *  Thread Starter [Bukajec](https://wordpress.org/support/users/bukajec/)
 * (@bukajec)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-members-checking-for-capabilities/#post-2612915)
 * I get that, but the guide also mentions something like this:
 *     ```
       if ( function_exists( 'members_check_for_cap' ) && members_check_for_cap( 'some_cap' ) ) {
       	/* Do something if any role has the 'some_cap' capability. */
       else {
       	/* Do something for people without the plugin. */
       }
       ```
   
 * And I don’t understand why should the user have the plugin installed, it doesn’t
   make sense.
 *  Thread Starter [Bukajec](https://wordpress.org/support/users/bukajec/)
 * (@bukajec)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-members-checking-for-capabilities/#post-2612916)
 * Is it like in case I remove the plugin?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Members] Checking for Capabilities’ is closed to new replies.

 * ![](https://ps.w.org/members/assets/icon-256x256.png?rev=3508404)
 * [Members - Membership & User Role Editor Plugin](https://wordpress.org/plugins/members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/members/)
 * [Active Topics](https://wordpress.org/support/plugin/members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/members/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Bukajec](https://wordpress.org/support/users/bukajec/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-members-checking-for-capabilities/#post-2612916)
 * Status: not resolved