Support » Plugins and Hacks » What am i doing wrong (coding help)

  • Hi.

    I am wondering why my plugin is bringing up the error message;
    You do not have sufficient permissions to access this page.

    when you go to the options page. After looking at various threads i believe it has something to do with this piece of code creating the page. Please help me fix this.
    <!–

    function wert_menu()
    {
    global $wpdb;
    include ‘wert_admin_panel.php’;
    }

    function wert_admin_actions()
    {
    add_options_page(“Wert Info”, “Wert Info”, 1,
    “wert info”, “wert_menu”);
    }

    add_action(‘admin_menu’, ‘wert_admin_actions’);

    –>

    Ignore the <!– and –>

  • The topic ‘What am i doing wrong (coding help)’ is closed to new replies.