From http://wpsnipp.com/index.php/functions-php/replace-the-generator-meta/