just one thing – tried to make my own plugin with this code and pluginception. Got an fatal error and had to remove it on my FTP server
Display the name of the source when using multiple sources
add_filter( 'feedzy_author_name', 'feedzy_author_name', 10, 3 );
function feedzy_author_name( $authorName, $feedURL, $item ) {
$source = '';
if ( is_array( $feedURL ) ) {
// if feedURL is multiple urls.
foreach ( $feedURL as $feed ) {
if ( strpos( strtolower( $feed ), 'https://www.lavanguardia.com/mvc/feed/rss/home' ) !== false ) {
$source = 'La Vanguardia';
}
if ( strpos( strtolower( $feed ), 'https://ep00.epimg.net/rss/tags/ultimas_noticias.xml' ) !== false ) {
$source = 'El País';
}
if ( strpos( strtolower( $feed ), 'https://estaticos.elmundo.es/elmundo/rss/portada.xml' ) !== false ) {
$source = 'El Mundo';
}
if ( strpos( strtolower( $feed ), 'https://www.europapress.es/rss/rss.aspx' ) !== false ) {
$source = 'Europa Press';
}
}
} else {
// if feedURL is a single url.
}
return $source;<br>}