This code snippet is added to the functions.php file in the child theme. This adds a menu with clickable links into the admin bar. Refer to the above video for customization.
/*
Add a menu with clickable links into the admin bar.
*/
add_action( 'admin_bar_menu', 'social_media_links', 900 );
function social_media_links($wp_admin_bar)
{
$args = array(
'id' => 'resources',
'title' => 'Resources',
'meta' => array( 'class' => 'first-toolbar-group' ),
);
$wp_admin_bar->add_node( $args );
$args = array();
array_push($args,array(
'id' => 'sme',
'title' => 'Thousands of Digital Products',
'href' => 'http://www.plrmines.com/',
'parent' => 'resources',
));
array_push($args,array(
'id' => 'browser_test',
'title' => 'WordPress Themes and Plugins',
'href' => 'http://pmthemes.com/',
'parent' => 'resources',
));
array_push($args,array(
'id' => 'cool_text',
'title' => 'Cool Text',
'href' => 'https://cooltext.com/',
'parent' => 'resources',
));
//$sorted_args = array($targs,$yargs,$fargs);
sort($args);
for($a=0;$a<sizeOf($args);$a++)
{
$wp_admin_bar->add_node($args[$a]);
}
}