WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Darhazer
    Member
    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.

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

  2. Travis Smith
    Member
    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