Support » Plugins » Hacks » what am i doing wrong

  • 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 –>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘what am i doing wrong’ is closed to new replies.