new rss channel
This commit is contained in:
@@ -636,3 +636,15 @@ add_action( 'pre_get_posts', function ($query) {
|
||||
});
|
||||
|
||||
|
||||
function add_text_to_the_feed_end( $content ){
|
||||
$content .= '
|
||||
<p>
|
||||
Источник: <a href="'. get_bloginfo('url') .'">'. get_bloginfo('name') .'</a>.
|
||||
</p>
|
||||
';
|
||||
|
||||
return $content;
|
||||
}
|
||||
add_filter( 'the_excerpt_rss', 'add_text_to_the_feed_end' );
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user