nav_menu_submenu_attributes

nav_menu_submenu_attributes

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('nav_menu_submenu_attributes') is found 1 times:

  • /wp-includes/class-walker-nav-menu.php line 93
    		 * }
    		 * @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_submenu_attributes', $atts, $args, $depth );
    		$attributes = $this->build_atts( $atts );
    
    		$output .= "{$n}{$indent}<ul{$attributes}>{$n}";
    	}
    
    	/**