Skip to content

trepmal.com

  • Home
  • Plugins
  • Github
  • Me on WP.org
  • Donate

Categories

  • WordPress Bits (149)
  • Uncategorized (11)
  • Scripts (5)
  • Tidbits (5)
  • Fun (3)

Tags

  • wordpress (30)
  • administration (16)
  • plugin (9)
  • free download (8)
  • functions.php (8)

Year

  • 2018 (8)
  • 2016 (2)
  • 2015 (4)
  • 2014 (19)
  • 2013 (11)

Filter Hook: wp_title

Change the Globally

If you want to add something to the <title>, without adding to the blog title, you can directly change that with a few lines of code:

add_filter( 'wp_title', 'append_to_title', 10, 3 );
function append_to_title( $title, $sep, $seplocation ) {
	return $title .= "OMGBBQFTW $sep ";
}
Posted on April 10, 2011March 1, 2012Categories WordPress BitsTags site titleLeave a comment on Change the Globally
Proudly powered by WordPress