Add Custom Link To WordPress Admin Bar 3.3.1

This function adds a link in the WordPress admin bar. You must edit lines 8, 11, and 14 with your own style id, title (anchor text), and url.

function isahelp_admin_bar_link() {
	global $wp_admin_bar;
	if ( !is_admin_bar_showing() )
		return;
	$wp_admin_bar->add_menu( array(

// edit id to your own preference for styling
	'id' => 'isahelp_link', 

// edit title to your own anchor text for the link
	'title' => __( 'Helpful Tips from Isabel'),

// edit the link, of course
	'href' => __('http://blogofclient.com/help'),
	) );
}
add_action('admin_bar_menu', 'isahelp_admin_bar_link',50);

See more: ,

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]