function replace_vatext($text){
$replace = array(
'<a href="' => '<!--noindex-->
<a target="_blank" rel="nofollow noopener noreferrer" href="',
'</a>' => '</a>
<!--/noindex-->'
);
$text = str_replace(array_keys($replace), $replace, $text);
$text .= $field;
return $text;
}
add_filter('the_excerpt', 'replace_vatext');
add_filter('the_content', 'replace_vatext');