Skip to content

Instantly share code, notes, and snippets.

@amsgator
Created September 7, 2019 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amsgator/9e0a6efc41bae336dc2d67df54d23131 to your computer and use it in GitHub Desktop.
Save amsgator/9e0a6efc41bae336dc2d67df54d23131 to your computer and use it in GitHub Desktop.
Stop WordPress from Adding "noreferrer" to Links
<?php
function my_targeted_link_rel( $rel_values ) {
return 'noopener';
}
add_filter( 'wp_targeted_link_rel', 'my_targeted_link_rel', 999 );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment