Title: Dynamically Change Selected Admin Menu
Last modified: August 20, 2016

---

# Dynamically Change Selected Admin Menu

 *  [TheoWirebox](https://wordpress.org/support/users/theowirebox/)
 * (@theowirebox)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/dynamically-change-selected-admin-menu/)
 * Hi
 * I am currently writing a plugin that has two pages.
 * Page one is a table to view information and page two is a form to post information
   to a DB which will then be displayed in the table of page one.
 * When I post my form on page two I check to see if all the data validates and 
   if it does I call the function to display page one, where the user will now see
   there latest entry.
 * The only problem with this is the admin menu still has the “current” class on
   the li tag of page two maiking it look like you are actually on page two.
 * Is there any way to dynamically override the menu and say actually I am on page
   one?

The topic ‘Dynamically Change Selected Admin Menu’ is closed to new replies.

## Tags

 * ["selected"](https://wordpress.org/support/topic-tag/selected/)
 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [dynamically](https://wordpress.org/support/topic-tag/dynamically/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)

 * 0 replies
 * 1 participant
 * Last reply from: [TheoWirebox](https://wordpress.org/support/users/theowirebox/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/dynamically-change-selected-admin-menu/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
