On this page
apply_filters( 'nav_menu_attr_title', string $item_title )
Filters a navigation menu item’s title attribute.
Parameters
$item_titlestring-
The menu item title attribute.
Source
File: wp-includes/nav-menu.php. View all references
$menu_item->attr_title = ! isset( $menu_item->attr_title ) ? apply_filters( 'nav_menu_attr_title', $menu_item->post_excerpt ) : $menu_item->attr_title;
Related
Used By
| Used By | Description |
|---|---|
| WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item() wp-includes/customize/class-wp-customize-nav-menu-item-setting.php | Get the value emulated into a WP_Post and set up as a nav_menu_item. |
| wp_setup_nav_menu_item() wp-includes/nav-menu.php | Decorates a menu item object with the shared navigation menu item properties. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/nav_menu_attr_title