Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

fghf

ghfgh

// Add Toolbar Menus
function map_toolbar() {
	global $wp_admin_bar;

	$args = array(
		'id'     => 'edit_map',
		'title'  => __( 'Edit Map', 'text_domain' ),
		'group'  => true,
		'meta'   => array(
			'html'     => 'ffff',
			'class'    => 'dff.css',
			'target'   => 'asdsad',
			'onclick'  => 'asd',
			'title'    => 'asdasd',
			'tabindex' => 'asdasd',
		),
	);
	$wp_admin_bar->add_menu( $args );

	$args = array(
		'id'     => 'fghfgh',
		'title'  => __( 'fghfgh', 'text_domain' ),
		'href'   => 'fghfgh',
		'group'  => true,
		'meta'   => array(
			'html'     => 'fghfgh',
			'class'    => 'fghfgh',
			'target'   => 'fghfgh',
			'onclick'  => 'fghfgh',
			'title'    => 'fghfh',
			'tabindex' => 'fhfgh',
		),
	);
	$wp_admin_bar->add_menu( $args );

}

// Hook into the 'wp_before_admin_bar_render' action
add_action( 'wp_before_admin_bar_render', 'map_toolbar', 999 );