HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/wintergenomics_site/wp-content/plugins/apollo13-framework-extensions/features/rss.php
<?php
/**
 * Adding thumbnails to RSS feed
 *
 * @since  1.4.0
 *
 * @param $content
 *
 * @return string new content
 * @internal param string $content current content produced by WordPress
 */
function a13fe_rss_post_thumbnail($content) {
	/* in case there is old version of theme which had this feature inside, we don't add it */
	if ( function_exists( 'apollo13framework_rss_post_thumbnail' ) ){
		return $content;
	}

	global $post;
	if ( has_post_thumbnail( $post->ID ) ) {
		$content = '<p>' . get_the_post_thumbnail( $post->ID, 'medium' ) .
		           '</p>' . get_the_excerpt();
	} else {
		$content = get_the_excerpt();
	}

	return $content;
}
add_filter( 'the_excerpt_rss', 'a13fe_rss_post_thumbnail' );
add_filter( 'the_content_feed', 'a13fe_rss_post_thumbnail' );