Comments on: Adding WordPress menu item description using nav_menu_item_title() http://bbird.me/adding-wordpress-menu-item-description-using-nav_menu_item_title/ WordPress quick tips Tue, 11 Apr 2017 21:24:00 +0000 hourly 1 https://wordpress.org/?v=4.7.4 By: KorbinianMoser http://bbird.me/adding-wordpress-menu-item-description-using-nav_menu_item_title/#comment-121 Tue, 14 Mar 2017 14:25:00 +0000 http://bbird.me/?p=453#comment-121 So what does this have to do with nav_menu_item_title filter? In fact I’m trying to do the same a lot easier using this filter, but weirdly $item is not available in my hooked funktion… ah, I missed the accepted_args! So you could just do add_filter( ‘nav_menu_item_title’, function($title, $item, $args, $depth) { return $title.'<span>’.$item->description.'</span>’; }, 999, 4);

]]>