• Hello!

    I’m from Brazil, so sorry for my english… I posted it on Brazilian forum, but no answer so far…

    I created a settings page to do some configurations in a specific functionality of my theme, using register_setting() to register the configs and add_action('admin_init', 'my_register_func') to do it. I used submit_button() too.

    When I access the Admin Panel, everything works fine. Changes are saved and modifications work.

    The big problem is: I want to “Editors” can save this settings too. In “functions.php” I put the capability to show the config page to “Editors”:

    add_menu_page('example', 'example', 'edit_posts', 'example-page', 'example', 'icon')

    The config page are been showing to the editor, but they can’t save changes! When a editor click on “Save”, an error message displays “Cheating, right?” (I don’t know if it is the real English message, I translated that).

    How can I do to allow Editors to save this Settings without changing the Editors users to Admin users. I don’t want to allow they to change another settings, only my custom settings page.

    Thanks.

The topic ‘Change required "Capability" to save "Custom Settings"’ is closed to new replies.