Salve, dovrei aggiungere al file plugin.php di wordpress il seguente codice per far visualizzare il sito al posto dell'autore nel plugin FEEDZY RSS Feeds:
Codice PHP:
function bweb_feedzy_author_to_blog_matches( $matches ) {
$domain = parse_url( $matches[1] );
return '<a href="' . $matches[1] . '" target="_blank" rel="nofollow" title="' . $domain["host"] . '">' . $domain["host"] . '</a>';
}
function bweb_feedzy_author_to_blog( $content, $feedURL ) {
$pattern= '/<a.*href=\"(https?:\/\/.*)\".*>(.*)<\/a>/iU';
$content= preg_replace_callback( $pattern, 'bweb_feedzy_author_to_blog_matches', $content );
return $content;
}
add_filter( 'feedzy_meta_output', 'bweb_feedzy_author_to_blog', 9, 2 );
Si può fare?