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

Need help implementing a tutorial in your site or want to hire me for custom work?

HIRE ME

Find the article helpful and wish to donate?

DONATE
magnifiercross
>
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: