/**
* Add copyright text to WordPress RSS feed content
*/
function custom_add_rss_copyright_notice( $content ) {
if ( is_feed() ) {
$copyright = ‘<p>Copyright © ‘ .
esc_html( gmdate( ‘Y’ ) ) .
‘ Your Website Name. All rights reserved.</p>’;
$content .= $copyright;
}
return $content;
}
add_filter( ‘the_content_feed’, ‘custom_add_rss_copyright_notice’ );
Steps
1. Add the PHP code to your theme's functions.php file or a PHP snippets plugin.
2. Replace Your Website Name with your website name.
3. Save and activate the snippet.
4. Open your WordPress RSS feed, usually yourdomain.com/feed/.
Tested on
WordPress 6.8
Reported by the author on November 16, 2026. WPFolks has not verified this.
Not tested against WordPress 7.1.5. It may still work.
