From dcd1d69ac092a4aa1e9e9b578245cbd5725731c3 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 30 Nov 2023 13:09:57 +0100 Subject: [PATCH] updating menu order --- includes/admin.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/includes/admin.php b/includes/admin.php index 7a4c614..883f8eb 100644 --- a/includes/admin.php +++ b/includes/admin.php @@ -311,14 +311,18 @@ function my_new_admin_menu_order($menu_order) // define your new desired menu positions here // for example, move 'upload.php' to position #9 and built-in pages to position #1 $new_positions = array( - 'upload.php' => 9, - // 'edit.php?post_type=page' => 1, 'edit.php?post_type=conseils' => 1, 'edit.php?post_type=questions' => 2, 'edit.php?post_type=brochures' => 3, 'edit.php?post_type=fiches-infos' => 4, 'edit.php?post_type=vocabulaire' => 5, - 'edit.php?post_type=jobs' => 10, + 'edit.php' => 6, + 'edit.php?post_type=jobs' => 7, + 'edit.php?post_type=videos-webinaires' => 8, + 'edit.php?post_type=page' => 9, + 'theme-general-settings' => 10, + 'upload.php' => 11, + 'gf_edit_forms' => 12, ); // helper function to move an element inside an array function move_element(&$array, $a, $b)