Skip to content

Instantly share code, notes, and snippets.

@madnil
Last active December 19, 2015 07:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save madnil/5918726 to your computer and use it in GitHub Desktop.
Save madnil/5918726 to your computer and use it in GitHub Desktop.
This filter modifies the feed title. Copy the code in the functions.php of the theme and replace the placeholder NEW_TITLE with the desired title for the feed.
<?php
function mn_modify_bloginfo($content, $feedelementname) {
Switch ($feedelementname) {
case 'name' : // Feed title
return "NEW_TITLE";
break;
default :
return $content;
break;
}
}
add_filter('bloginfo_rss', 'mn_modify_bloginfo', 10, 2);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment