• Resolved ioperator

    (@ioperator)


    Dear Complianz Support-Member,

    I would like to reorder the position of Complianz in the WordPress Admin Menu. I would like to put it in the block after “Settings”. I would be extremly thankfull if you could be so kind and assist me in this matter.

    THX for your time and help.

    LG Patrick

    • This topic was modified 6 months, 4 weeks ago by ioperator.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Antonio Candela

    (@antoiub)

    Hello @ioperator,

    Thank you for reaching out.

    You can use the bellow snippet, it will move the menu as you requested:

    add_action('admin_menu', 'reposition_complianz_menu', 999);
    function reposition_complianz_menu() {
    global $menu;

    // Find the Complianz menu position
    $complianz_key = null;
    foreach ($menu as $key => $item) {
    if (isset($item[2]) && strpos($item[2], 'complianz') !== false) {
    $complianz_key = $key;
    break;
    }
    }

    // If found, move it after "Settings" (position 80)
    if ($complianz_key !== null) {
    $complianz_menu = $menu[$complianz_key];
    unset($menu[$complianz_key]);
    $menu[81] = $complianz_menu; // 80 is Settings, so 81 is right after
    }
    }

    I hope this helps.

    Best regards,
    Antonio

    Thread Starter ioperator

    (@ioperator)

    Thank you very much for your time and help.

    Have a great day.

    LG Patrick

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Reorder WP-Menu Tab’ is closed to new replies.