12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Oct 19, 2018

How to move Oxygen admin menu up in the backend

Sridhar Katakam

In the Oxygen Facebook group a user asked:

hello all, a quick question, is there a away to move Oxygen up in the admin menu, I would like to put it higher up?

We can activate the menu_order filter and add the menu slug for Oxygen’s top-level menu item, ct_dashboard_page wherever we want to move it to in the attached function’s array.

Step 1

Install and activate Code Snippets plugin if you have not already.

Step 2

Go to Snippets > Add New.

Add a new Snippet titled say, Move Oxygen admin menu up having the following code:

add_filter( 'custom_menu_order', '__return_true' );

add_filter( 'menu_order', 'custom_menu_order' );
function custom_menu_order() {
    return array( 'index.php', 'separator1', 'ct_dashboard_page' );
}

Set it to run only in the admin.

That’s it!

References:

https://wordpress.stackexchange.com/a/276249/14380

https://codex.wordpress.org/Plugin_API/Filter_Reference/menu_order

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right