Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hookedg

    (@hookedg)

    Update2:

    Found the missing menu item permissions in the $submenu array. Need to know how to combine these in the correct format.

    • This reply was modified 4 years, 7 months ago by hookedg.
    • This reply was modified 4 years, 7 months ago by hookedg.
    • This reply was modified 4 years, 7 months ago by hookedg.
    Thread Starter hookedg

    (@hookedg)

    Update:

    I’ve had some success by replacing line 4 in admin-menu.php from:

    add_filter( ‘parent_file’, ‘amg_organize_menu’, 10, 1 );

    to:

    add_filter('custom_menu_order', '__return_true');
    add_filter('menu_order', 'amg_organize_menu', 10, 1);

    and line 129 to:

    return $menu[0];

    Just need to fix the permissions error on some pages now. I guess we need to attach an array of permissions aswell. If you return the $menu array before you unset some of it’s keys the permissions error goes away

    • This reply was modified 4 years, 7 months ago by hookedg.
    • This reply was modified 4 years, 7 months ago by hookedg.
    • This reply was modified 4 years, 7 months ago by hookedg.
    • This reply was modified 4 years, 7 months ago by hookedg.
Viewing 2 replies - 1 through 2 (of 2 total)