nav_menu_link_attributes

nav_menu_link_attributes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('nav_menu_link_attributes') is found 1 times:

  • /wp-includes/class-walker-nav-menu.php line 255
    		 * @param WP_Post  $menu_item The current menu item object.
    		 * @param stdClass $args      An object of wp_nav_menu() arguments.
    		 * @param int      $depth     Depth of menu item. Used for padding.
    		 */
    		$atts       = apply_filters( 'nav_menu_link_attributes', $atts, $menu_item, $args, $depth );
    		$attributes = $this->build_atts( $atts );
    
    		/** This filter is documented in wp-includes/post-template.php */
    		$title = apply_filters( 'the_title', $menu_item->title, $menu_item->ID );
    
    		/**
    

See this hook used in plugins: