Detect and make links nofollow in author description
If you want to add rel=”nofollow” to all the links, then you can simply use str_replace(): echo str_replace( ‘<a href=”https://wordpress.stackexchange.com/questions/254676/,”<a rel=”nofollow” href=”, $part_cur_auth_obj->description );