Posted on June 28, 2017 by Ania Moussawel 0 function mdc_target_blank($content) { $post_string = $content; $post_string = str_replace(‘<a', '<a target="_blank"', $post_string); return $post_string; } add_filter( 'the_content', 'mdc_target_blank' ); Share this:FacebookLinkedInLike this:Like Loading...