I have a short function to clean up the WP Nav Menu.
add_filter('nav_menu_css_class','strip_classes');
function strip_classes($a){
return (in_array('menu-item-71',$a))? array('contact') : array();
}
The class name menu-item-71
of a certain nav point is replaced by contact
. Now I’d like a second nav point with a class named menu-item-34
to be renamed to about-me
. How is this possible?