Ready to get started?Download WordPress


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

  1. Darhazer
    Posted 2 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.


  2. Travis Smith
    Plugin Author

    Posted 1 year ago #

    I added this back.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic