WordPress.org

Ready to get started?Download WordPress

Forums

[Problem] You cannot change walker in admin-ajax (1 post)

  1. natrim
    Member
    Posted 3 years ago #

    in admin-ajax.php on line 801 there is: 'walker' => new Walker_Nav_Menu_Edit,
    but thas is problem cause this way you cannote change the walker for the ajax add-menu-item action
    i think there should be filter like in nav-menus
    $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $menu_id );

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.