nav_menu_description WordPress Filter Hook

The nav_menu_description hook is used to filter the text used for a nav menu item's description. This is useful for displaying additional information about the menu item, such as the number of items in a category.

apply_filters( 'nav_menu_description', string $description ) #

Filters a navigation menu item’s description.


Parameters

$description

(string)The menu item description.


Top ↑

Source

File: wp-includes/nav-menu.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.