Give custom class names to WP nav sub-menu

I was able to work this out by using a hook that I grabbed from Artemiy Egorov’s answer on this post so I figured I’d share in case someone else needs it too: add_filter( ‘nav_menu_submenu_css_class’, ‘rename_sub_menus’, 10, 3 ); function rename_sub_menus( $classes, $args, $depth ){ foreach ( $classes as $key => $class ) { … Read more