Title: has_cap issue
Last modified: August 22, 2016

---

# has_cap issue

 *  Resolved [Bryan Willis](https://wordpress.org/support/users/codecandid/)
 * (@codecandid)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/has_cap-issue/)
 * has_cap was called with an argument that is deprecated since version 2.0! Usage
   of user levels by plugins and themes is deprecated. Use roles and capabilities
   instead.
 * [https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/](https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/)

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

 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/has_cap-issue/#post-5309604)
 * Hello, well i dont know where i use the function has_cap, if you see where i 
   put it?
 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/has_cap-issue/#post-5309634)
 * Problem fix, it was because i use 8 in the adding function of the plugin, but
   i was hard to find the why of this problem
 *  Thread Starter [Bryan Willis](https://wordpress.org/support/users/codecandid/)
 * (@codecandid)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/has_cap-issue/#post-5309635)
 * Makes sense. Yea it was hard to find, I couldn’t find has cap anywhere in your
   plugin. Thanks for the update!

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

The topic ‘has_cap issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dnui-delete-not-used-image-wordpress.
   svg)
 * [DNUI](https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dnui-delete-not-used-image-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/dnui-delete-not-used-image-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dnui-delete-not-used-image-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dnui-delete-not-used-image-wordpress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Bryan Willis](https://wordpress.org/support/users/codecandid/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/has_cap-issue/#post-5309635)
 * Status: resolved