• Resolved Aurovrata Venet

    (@aurovrata)


    Hello Frank,

    I have Adminimize installed along side WP-CRM System plugin. WP-CRM hooks on the filter custom_menu_order to change the order of its sub-menu (by altering the global $submenu variable). Adminimize caches & displays revised indexed values of the sub-menu in its settings page.

    However, when Adminimize hides selected menus for a role, for a user with that role who logs into the dashboard, Adminimize hides the wrong sub-menus because it hooks onto the action admin_menu which fires before the filter custom_menu_order. As a result the wrong menu gets hidden.

    To fix this, I found that simply changing the Adminimize function _mw_adminimize_set_menu_option hook from the action admin_menu to the filtercustom_menu_order works beautifully.

    This is on line 437 of of the file adminimize.php which I changed to,

    add_filter( 'custom_menu_order', '_mw_adminimize_set_menu_option', 99999 );

    • This topic was modified 9 years, 4 months ago by Aurovrata Venet. Reason: typo fix
    • This topic was modified 9 years, 4 months ago by Aurovrata Venet. Reason: typo in title
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug: Adminize hides wrong submenu page in re-ordered sub-menus’ is closed to new replies.