Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function feedFilter($query) {
if ($query->is_feed) {
add_filter('the_content','feedContentFilter');
}
return $query;
}
add_filter('pre_get_posts','feedFilter');
function feedContentFilter($content) {
$content .= '<p>ЗДЕСЬ ПИШИТЕ ПРОИЗВОЛЬНЫЙ ТЕКСТ </p>';
return $content;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.