Re: New plugin: Add All Nav Links to BP Adminbar
Here’s an interesting question from a user which would render the plugin more user-friendly in a WP3.0 environment:
“How do you change the label of the $adminbarPages 1 & 2 to default to the name of the custom menus? In other words, I don’t want to hardcode the labels into the navbar. Instead, I’d like it to display the Custom Menu names.”
Something like this maybe (I’ve omitted the “>” and “?” simply so the code would show here…)
$adminbarPages1 = ‘ php echo wp_nav_menu( array(‘menu’ => ‘MENU-SLUG-HERE-I-THINK’ )); ‘;