//This code removes noreferrer from your new or updated posts add_filter( 'wp_targeted_link_rel', 'my_targeted_link_rel_remove_noreferrer',999); function my_targeted_link_rel_remove_noreferrer( $rel_values ) { return preg_replace( '/noreferrer\s*/i', '', $rel_values ); } //This code removes noopener from your new or updated posts add_filter( 'wp_targeted_link_rel', 'my_targeted_link_rel_remove_noopener',999); function my_targeted_link_rel_remove_noopener( $rel_values ) { return preg_replace( '/noopener\s*/i', '', $rel_values ); } //remove noreferrer on the frontend, *will still show up in the editor.* function my_formatter($content) { $replace = array(" noreferrer" => "" ); $new_content = strtr($content, $replace); return $new_content; } //remove noopener on the frontend, *will still show up in the editor.* function noopener_formatter($content) { $replace = array("noopener" => "" ); $new_content = strtr($content, $replace); return $new_content; } add_filter('the_content', 'noopener_formatter', 999); add_filter('the_content', 'my_formatter', 999);