A WordPress-centric search engine for devs and theme authors



nav_menu_attr_title ›

Since3.0.0
Deprecatedn/a
apply_filters( 'nav_menu_attr_title', $menu_item->post_excerpt )
Parameters:
  • (string) $item_title The menu item title attribute.
    Required: Yes
Defined at:
Codex:

Filters a navigation menu item's title attribute.





Source

$menu_item->attr_title = ! isset( $menu_item->attr_title ) ? apply_filters( 'nav_menu_attr_title', $menu_item->post_excerpt ) : $menu_item->attr_title;