Last active
March 22, 2018 05:13
-
-
Save clreed87/247d7826048afe73d2e3f2770896da21 to your computer and use it in GitHub Desktop.
Remove post titles in RSS feed for status posts
This file contains 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 | |
// Do not include the opening php tag. | |
//* Remove post titles in RSS feed for status posts | |
add_filter( 'the_title_rss', 'crt_change_feed_post_title' ); | |
function crt_change_feed_post_title( $title ) { | |
if ( has_post_format( 'status' ) ) { | |
$title = ''; | |
} | |
return $title; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment