Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 906297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:21:54+00:00 2026-05-15T16:21:54+00:00

I am trying to create a wordpress plugin admin menu. The problem that I

  • 0

I am trying to create a wordpress plugin admin menu. The problem that I am running into is with the menus. I am trying to add a page in the admin without actually adding the menu link. So for example I want to have a menu called test then I want to have some extra pages but I don’t want physical links to them because they are only going to be used when there is an id to pass to them. is this possible and if so please someone explain because i can’t seem to figure it out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:21:55+00:00Added an answer on May 15, 2026 at 4:21 pm

    Yes. In your callback function for the admin page, just write out different sections and use conditional checks to display the right content. Then, under the page’s title, add a <ul> with the class subsubsub containing the links to take the user to the right place. Something like this:

    function my_awesome_admin_page(){
      echo '<h2>My Title</h2>';
      echo '<ul class="subsubsub"> <li><a href="?page=my-page">Foo</a></li> <li><a href="?page=my-page&foo=bar">Bar</a></li> </ul>';
      if($_GET['foo'] != 'bar'){
        //You're on the first page
      } else {
        //You're on the second page
      }
    }
    

    I forget what the class is to signify the current subpage, but you can take a look on the ‘Add Plugin’ admin page. I think it’s selected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 498k
  • Answers 499k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Assuming you want to search inside the files (not the… May 16, 2026 at 12:26 pm
  • Editorial Team
    Editorial Team added an answer You aren't going to be able to do this from… May 16, 2026 at 12:26 pm
  • Editorial Team
    Editorial Team added an answer Try globals() instead of locals(). Although it may be better… May 16, 2026 at 12:26 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am trying to create a Wordpress MU admin plugin, that will insert some
I'm trying to create a hook in one Wordpress plugin that could be used
I'm trying to add some functionality from a plugin I have made into a
I am trying to create my first WordPress plugin. Even in trying to create
I'm writing my first wordpress plugin and I'm trying to create a function to
I would like to create a plugin that uses the contact form 7 hook,
I'm trying to learn to write a WordPress plugin by setting myself a goal
Trying to create an app that does some socket communication (Writing only). I can
I'm trying to just write a simple PHP if statement that checks if a
I´m trying to create a VIEW in SQL Server 2005. The SQL code is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.