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.
Source
$walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $menu_id );
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.