From http://wp-snippets.com/customize-the-favorites-dropdown-menu/