[Plugin: WP Custom Menu Filter Plugin] The plugin removes all classes from menu items, including cur
-
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.
https://www.ads-software.com/extend/plugins/wp-custom-menu-filter-plugin/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: WP Custom Menu Filter Plugin] The plugin removes all classes from menu items, including cur’ is closed to new replies.