<?php
/*
Plugin Name: Example header links
Plugin URI:
Description: Example of how to add links to header bar
Author:
Version: 1.0
Author URI:
*/

// NOTE: If you update this file be sure to RENAME it so it doesn't get overwritten when you upgrade!
// NOTE: Rename both the file and the function name 'plugin_addHeaderLinks' to something unique

addFilter('header_links', 'plugin_addHeaderLinks');

//
function plugin_addHeaderLinks($html) {

  // add links at the beginning
  $preLinks  = '';
  $preLinks .= "<a href='http://www.google.com/'>Google</a> | ";

  // add links at the end
  $postLinks  = '';
  $postLinks .= " | <a href='http://www.yahoo.com/'>Yahoo</a>";

  //
  $html = $preLinks . $html . $postLinks;
  return $html;
}

?>
