WordPress.org

Forums

What does 'read' mean in add_theme_page(); ? (2 posts)

  1. Rohit Tripathi
    Member
    Posted 2 years ago #

    I am trying to add a Theme options page, and this is the piece of code i am using..

    add_theme_page('Theme Options', 'Theme Options', 'read', 'theme-option-slug' , 'theme_settings_page');

    I am wondering what does the 'read' in the list of parameters mean. Also, If I replace it with Administrator, it does not work.

    What all values Can I use to replace the 'read'. I read on WordPress CodeX, it is the field for Capability. But, entering options like 'Editor', Administrator, etc in the function does not work.

    So, I need to know the exact value of the code I can use....

  2. esmi
    Forum Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags