nav_menu_item_args

nav_menu_item_args

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('nav_menu_item_args') is found 1 times:

  • /wp-includes/class-walker-nav-menu.php line 164
    		 * @param stdClass $args      An object of wp_nav_menu() arguments.
    		 * @param WP_Post  $menu_item Menu item data object.
    		 * @param int      $depth     Depth of menu item. Used for padding.
    		 */
    		$args = apply_filters( 'nav_menu_item_args', $args, $menu_item, $depth );
    
    		/**
    		 * Filters the CSS classes applied to a menu item's list item element.
    		 *
    		 * @since 3.0.0
    		 * @since 4.1.0 The `$depth` parameter was added.