nav_menu_attr_title

nav_menu_attr_title

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('nav_menu_attr_title') is found 3 times:

  • /wp-includes/customize/class-wp-customize-nav-menu-item-setting.php line 637
    			$post->url = '';
    		}
    
    		/** This filter is documented in wp-includes/nav-menu.php */
    		$post->attr_title = apply_filters( 'nav_menu_attr_title', $post->attr_title );
    
    		/** This filter is documented in wp-includes/nav-menu.php */
    		$post->description = apply_filters( 'nav_menu_description', wp_trim_words( $post->description, 200 ) );
    
    		/** This filter is documented in wp-includes/nav-menu.php */
    		$post = apply_filters( 'wp_setup_nav_menu_item', $post );
    
  • /wp-includes/nav-menu.php line 969
    			 * @since 3.0.0
    			 *
    			 * @param string $item_title The menu item title attribute.
    			 */
    			$menu_item->attr_title = ! isset( $menu_item->attr_title ) ? apply_filters( 'nav_menu_attr_title', $menu_item->post_excerpt ) : $menu_item->attr_title;
    
    			if ( ! isset( $menu_item->description ) ) {
    				/**
    				 * Filters a navigation menu item's description.
    				 *
    				 * @since 3.0.0
    
  • /wp-includes/nav-menu.php line 1004
    			$menu_item->url    = get_permalink( $menu_item->ID );
    			$menu_item->target = '';
    
    			/** This filter is documented in wp-includes/nav-menu.php */
    			$menu_item->attr_title = apply_filters( 'nav_menu_attr_title', '' );
    
    			/** This filter is documented in wp-includes/nav-menu.php */
    			$menu_item->description = apply_filters( 'nav_menu_description', '' );
    			$menu_item->classes     = array();
    			$menu_item->xfn         = '';
    		}