I see many questions have been asked about adding something to the admin bar, but still I can't get a new 'parent' admin-bar item for Advanced Custom Fields to work. The admin bar doesn't show up if I add this to my functions.php:
function my_theme_admin_bar_render() {
$wp_admin_bar->add_menu( array(
'parent' => 'Advanced Custom Fields',
'id' => 'acf',
'title' => __('Advanced Custom Fields'),
'href' => admin_url( 'edit.php?post_type=acf')
) );
}
add_action( 'wp_before_admin_bar_render', 'my_theme_admin_bar_render' );
How can I get this new admin bar item to work?