Is there a method to change the menu position of the 'pages' post type? When registering new custom post types, you can enter an integer in menu_position but how do I do this for the preregistered post types?

Can I somehow overwrite this?

PS: I need it to be 5.


you cannot put this on position 5 because there is something but you can put it on 4.5 with this code :

add_action("admin_menu", function () {

    $GLOBALS["menu"][4.5] = $GLOBALS["menu"][20];


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.