Set menu item as current, not just the class
-
Hey there, this plugin has been very helpful to me.
Could I request a small change? I would submit a pull request, but am not familiar with SVN and Trac. I am familiar with git…
In filter.php on line 10 there is this
if ( $menu_item->object_id == $postID && get_post_type() == $postType ) { array_push( $menu_item->classes, $cmicptClass->item ); $parent = $menu_item->menu_item_parent; }
It would be great if we could add:
$menu_item->current = true;
Which sets the menu as the current item, not just the class. This is used in certain plugins and code.
Thank you!!
- The topic ‘Set menu item as current, not just the class’ is closed to new replies.