WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the function reference for the text within the URL field in the Admin Menu page?

I have a PHP function that is utilizing the_content function reference to look for specific file paths and replace said file path with a custom path. My goal is to apply this function that is successfully changing paths within my pages/posts to changing the same type of paths when I'm adding custom links in the Admin Menu Management page.

Currently this function that uses add_filter and the_content function reference is not working for the Admin Menu Management Page.

I create custom menu sets and place them in sidebar's using widgets for easily management "quick links" to other pages and documents.

I've been using the following codex page to find function references: Function_Reference.

share|improve this question
It'll be better explained if you include sample code, page addresses (/wp-admin/edit.php) and snapshots. You can edit the Question whenever needed. – brasofilo Mar 28 '13 at 22:02
up vote 0 down vote accepted

There doesn't seem to be a single filter just for a menu item URL, but in wp-includes/nav-menu-template.php there are a few filters:

  • wp_nav_menu_objects - the menu items before being formatted with HTML
  • wp_nav_menu_items - a HTML list of the navigation menu items
  • wp_nav_menu - the completed menu just before output
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.