Title: Custom plugin capability issue
Last modified: August 22, 2016

---

# Custom plugin capability issue

 *  [willcowd](https://wordpress.org/support/users/willcowd/)
 * (@willcowd)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/custom-plugin-capability-issue/)
 * Hi All
 * I hope you can help.
 * I’ve created a plugin but I’m having problems with a capability.
 * `You do not have sufficient permissions to access this page.`
 * The admin page is created from
 *     ```
       add_action('admin_menu', 'todays_orders_page'); 
   
       function todays_orders_page() {
       	add_menu_page('Todays orders', 'Todays orders', 'todays_orders', __FILE__,'todays_orders');
       }
       ```
   
 * In the database for a user I have
    `a:1:{s:5:"todays_orders";b:1;}`
 * Which I’m assuming is set correctly.
    Using various plugins, the role I have 
   created as “Owner” is showing as having the todays_orders activated.
 * I have created other admin plugins but they have always been on the main site
   and not on a sub site of the multisite setup. Is this a possible issue?
 * Any help would be much appreciated
    Mark.

Viewing 1 replies (of 1 total)

 *  Thread Starter [willcowd](https://wordpress.org/support/users/willcowd/)
 * (@willcowd)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/custom-plugin-capability-issue/#post-5272029)
 * Any help would be great 🙂

Viewing 1 replies (of 1 total)

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

## Tags

 * [capabilities](https://wordpress.org/support/topic-tag/capabilities/)

 * 1 reply
 * 1 participant
 * Last reply from: [willcowd](https://wordpress.org/support/users/willcowd/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/custom-plugin-capability-issue/#post-5272029)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
