add_filter
(
'walker_nav_menu_start_el'
,
'description_in_nav_el'
,
10
,
4
)
;
function
description_in_nav_el
(
$item_output
,
$item
,
$depth
,
$args
)
{
return
preg_replace
(
'/(<a.*?>[^<]*?)</'
,
'$1'
.
"<span>
{$item->post_content}
</span><"
,
$item_output
)
;
}