Praise RSS through RSS

👊 It's a secret to everyone! Read more about RSS Club.

Kev Quirk und andere bedanken sich bei ihren Lesern die RSS benutzen um das jeweilige Blog zu lesen. Ich mag die Idee (ja, ich bin schnell und einfach zu begeistern ☺️) und möchte ein bisschen Werbung für Jeremy Herves WordPress Snippet machen, über das ich überhaupt erst auf das Thema gestoßen bin.

/**
* Display a nice welcoming message to folks reading posts via RSS.
*
* Kudos Kev Quirk for the idea!
*
* @param string $content The current post content.
*
* @return string
*/
function jeherve_welcome_rss_readers( $content ) {
$welcome_messages = array(
'Thanks for reading this post via RSS. RSS is great, and you’re great for using it. ♥️',
'Congratulations on being an RSS reader! You are part of an elite group of people who know how to stay updated in style.',
'Hey there, RSS reader! You’re one of a special few, choosing this old-school yet awesome way of staying informed. Kudos!',
'You are a true RSS aficionado! While others are drowning in social media noise, you enjoy the simplicity and control of RSS. Congrats!',
'RSS readers like you are the unsung heroes of the internet. Keep up the good work!',
'You are a master of efficiency! By using RSS, you save time and avoid distractions. 👏',
'RSS readers like you are the secret sauce of the internet. Keep rocking and staying informed!',
'Hey there, RSS reader! You’re cool. Keep being awesome! 😎',
);

$welcome_message = $welcome_messages[ wp_rand( 0, count( $welcome_messages ) - 1 ) ];

return sprintf(
'%1$s %2$s ',
$content,
$welcome_message
);
}
add_filter( 'the_content_feed', 'jeherve_welcome_rss_readers' );

Es ist eigentlich eine schöne Ergänzung für das RSS-Club Plugin… Mal schauen was Jeremy davon hält, wenn ich es dort einbaue!?!

RSS readers like you are the unsung heroes of the internet. Keep up the good work!