I have a menu item added using add_menu_page say ABC.

I have added a custom post_type product as a submenu item under ABC I created it with this code


How to highlight submenu_page product if selected in admin menu?

1 Answer 1


Solved the above issue by putting "show_in_menu" parameter to false while registering the Custom-Post-Type product.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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