WordPress functions.php 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.