wp_edit_nav_menu_walker WordPress Filter Hook

The wp_edit_nav_menu_walker hook is used to modify the default behavior of the WordPress menu editor. This hook allows you to override the default behavior of the menu editor and define your own custom behavior.

apply_filters( 'wp_edit_nav_menu_walker', string $class, int $menu_id ) #

Filters the Walker class used when adding nav menu items.


Parameters

$class

(string)The walker class to use. Default 'Walker_Nav_Menu_Edit'.

$menu_id

(int)ID of the menu being rendered.


Top ↑

Source

File: wp-admin/includes/nav-menu.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.