WordPress.org

Forums

WP Custom Menu Filter Plugin
[resolved] The plugin removes all classes from menu items, including cur (2 posts)

  1. Darhazer
    Member
    Posted 3 years ago #

    After some debugging, I found that wps_custom_nav_menu_items() receives as it's argument the entire nav menu, with applied classes, etc., but it gets the menu_id from the first menu item, and queries the database to get the original menu items. In this way it removes the added by _wp_menu_item_classes_by_context() classes.

    http://wordpress.org/extend/plugins/wp-custom-menu-filter-plugin/

  2. Travis Smith
    Member
    Plugin Author

    Posted 3 years ago #

    I added this back.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Custom Menu Filter Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic