Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to get all admin bar menu in array format from there I can get the link and menu name.

The solution that I'm thinking is that get first the adminbarmenu link then get the name of is then remove using the menu name.

I cant use $wp_admin_bar->remove_menu('media'); because I only have links.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.