You do not have sufficient permissions to access this page on a submenu

Continued to do more research and ended up finding the solution to my problem! Since the url I am passing the parameter to is /wp-admin/admin.php?page=ecosystem-delete. I didn’t even notice that ?page=ecosystem-delete is already a parameter, so I needed to pass my second parameter into the URL as &id= rather than ?id=. A simple overlooked mistake. … Read more

Make nav-menus.php available for editor

OK now i understand : There was something wrong due to previous manipulations. add_cap is modifying the database, so somehow i had written over other capabilities and it broke the wanted result. So i cleaned the role with the use of a few remove_cap, put my functions back and voilà !