Menu position

Hi there,

I hope you can help me out. I’ve tried to make a Media in my menu with this tutorial.

It worked but I can’t move it around in the menu. When I place it on another position the button doesn’t work anymore. I’ve tried to change the position in the code but this doesn’t work either. What could be causing the problem?

Best, Lieke

Hello @liekjah,

You can replace below line of code in the function you have copied from document.

$new_item->menu_order = 1;

It will place the My Media menu at very first position.

Thank you.