Last active
December 19, 2015 07:29
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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