Title: WordPress functions.php and permissions help
Last modified: August 19, 2016

---

# WordPress functions.php and permissions help

 *  [Harmonic Design](https://wordpress.org/support/users/harmonicdesign/)
 * (@harmonicdesign)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-functionsphp-and-permissions-help/)
 * Hello all, I need some help! Basically I created a theme options page so that
   a client with user account level Editor can edit options of the theme to replace
   general text of the homepage.
 * Everything works beautifully when I’m logged in as an admin, however when my 
   client is logged in as an Editor and makes a change to the options page and saves,
   she gets this error:
 * > You do not have sufficient permissions to access this page
 * I know what you’re thinking… that she _probably_ doesn’t have permissions to 
   access the page..!
 * The thing is that she DOES! Despite the error message declaring her lack of access
   permissions, the changes she makes ARE saved and reflected correctly on the homepage.
   Everything works great, except for the annoying and likely confusing to a client
   error message.
 * Here is a snippet of my code. As you can see, the permissions are set to “edit_pages”,
   which she can do…
 * `add_menu_page($themename." Options", "".$themename." Options", 'edit_pages',
   basename(__FILE__), 'mytheme_admin');`
 * Why is this message coming up for her, and how can I remove it? I don’t want 
   to have to tell her and any future clients to ‘just ignore the error’

The topic ‘WordPress functions.php and permissions help’ is closed to new replies.

## Tags

 * [permissions](https://wordpress.org/support/topic-tag/permissions/)
 * [theme options page](https://wordpress.org/support/topic-tag/theme-options-page/)

 * 0 replies
 * 1 participant
 * Last reply from: [Harmonic Design](https://wordpress.org/support/users/harmonicdesign/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-functionsphp-and-permissions-help/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
