WordPress - Modify page title

lorro Oct 29th, 2015 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   // Modify page title
  3.   // code goes in functions.php for your child theme
  4.   add_filter('the_title', 'modify_title', 10);
  5.   function modify_title( $title ) {
  6.     return str_replace("&nbsp;", "", $title);
  7.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand