apply_filters( ‘nav_menu_attr_title’, string $item_title )

In this article

Filters a navigation menu item’s title attribute.

Parameters

$item_titlestring
The menu item 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;

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.