WordPress at a glance
filter is not described

nav_menu_description filter-hook . WP 3.0.0

Filters a navigation menu item's description.

Usage

add_filter( 'nav_menu_description', 'filter_function_name_7303' );
function filter_function_name_7303( $description ){
	// filter...

	return $description;
}
$description(string)
The menu item description.

Список изменений

С версии 3.0.0 Введена.

Где вызывается хук

wp_setup_nav_menu_item()
nav_menu_description
WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item()
nav_menu_description
wp-includes/nav-menu.php 922
$menu_item->description = apply_filters( 'nav_menu_description', wp_trim_words( $menu_item->post_content, 200 ) );
wp-includes/nav-menu.php 950
$menu_item->description = apply_filters( 'nav_menu_description', '' );
wp-includes/customize/class-wp-customize-nav-menu-item-setting.php 636
$post->description = apply_filters( 'nav_menu_description', wp_trim_words( $post->description, 200 ) );

Где используется хук в ядре WP

wp-includes/default-filters.php 148
add_filter( $filter, 'wptexturize' );
wp-includes/default-filters.php 149
add_filter( $filter, 'strip_tags' );