A WordPress-centric search engine for devs and theme authors



nav_menu_description ›

Since3.0.0
Deprecatedn/a
apply_filters( 'nav_menu_description', wp_trim_words( $menu_item->post_content, 200 )
Parameters:
  • (string) $description The menu item description.
    Required: Yes
Defined at:
Codex:

Filters a navigation menu item's description.





Source

$menu_item->description = apply_filters( 'nav_menu_description', wp_trim_words( $menu_item->post_content, 200 ) );