Function highlight_current_nav_item
In navigation menus, typically, a theme would differentiate the current page
item from all other items in the menu - to do this, we add a special class to
the element desired by using this filter.
Note: Do not highlight if the link includes an anchor - only solo URLs.
Namespace: bpq
Link: http://codex.wordpress.org/Function_Reference/wp_nav_menu
Located at services/bpq.service.menus.php
Link: http://codex.wordpress.org/Function_Reference/wp_nav_menu
Located at services/bpq.service.menus.php
Parameters summary
type |
$classes |
The current list of classes already attached to this item |
type |
$item |
The nav item being analyzed |
Return value summary
The
|
new list of classes to be attached to this item |