wpseek.com
A WordPress-centric search engine for devs and theme authors



nav_menu_item_title › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'nav_menu_item_title', $title, $menu_item, $args, $depth )
Parameters: (4)
  • (string) $title The menu item's title.
    Required: Yes
  • (WP_Post) $menu_item The current menu item object.
    Required: Yes
  • (stdClass) $args An object of wp_nav_menu() arguments.
    Required: Yes
  • (int) $depth Depth of menu item. Used for padding.
    Required: Yes
Defined at:
Codex:

Filters a menu item's title.





Source

$title = apply_filters( 'nav_menu_item_title', $title, $menu_item, $args, $depth );