سلام. وقت بخیر. درست ترین کار اینه که لینکها رو دستی ویرایش کنید. کد زیر رو تست کنید:
<?php
/**
* Add "nofollow" to picofile external links
*/
function wpse_254317_nofollow( $content ) {
$domain = "https://www.picofile.com";
preg_match_all( '~<a.*>~isU', $content, $matches );
for ( $i = 0; $i <= count( $matches[0] ); $i ++ ) {
if ( isset( $matches[0][ $i ] ) && ! preg_match( '~nofollow~is', $matches[0][ $i ] )
&& ( preg_match( '~' . preg_quote( $domain ) . '~', $matches[0][ $i ] )
|| ! preg_match( '~' . get_