Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'the_content_feed', function ( $content, $feed_type ) {
- $post_id = get_the_ID();
- if ( $feed_type === 'atom' )
- $content = 'something else';
- else
- $content = wp_trim_words( $content, 30 );
- return $content;
- }, 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement