apply_filters( 'nav_menu_item_title', string $title, WP_Post $item, stdClass $args, int $depth )

Filters a menu item’s title.


Parameters

$title

(string) The menu item's title.

$item

(WP_Post) The current menu item.

$args

(stdClass) An object of wp_nav_menu() arguments.

$depth

(int) Depth of menu item. Used for padding.


Source

File: wp-includes/class-walker-nav-menu.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Introduced.