WordPress.org

Ready to get started?Download WordPress

Forums

add_submenu_page Problem! (1 post)

  1. _OMEGA_
    Member
    Posted 4 years ago #

    Hi all, I have an easy question for you.

    I'd like to know if there's a way to hide a menu entry in this way.

    I have an internal admin search plugin that I've done, it has the main menu voice, with at the moment two voices:
    Admin General Search
    |_ Search
    |_ Results

    The Results voice is the page where I can see the results and it was blank if I don't use the search form in the Search page.
    But if I remove this part of code:
    add_submenu_page(__FILE__, 'Search Results', 'Search Results', 0, 'searchresults', 'searchresults_menu');

    It tells me:

    You do not have sufficient permissions to access this page.

    Any hint on how to fix my problem?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.