Skip to content

Instantly share code, notes, and snippets.

@Log1x Log1x/functions.php
Created Mar 7, 2019

What would you like to do?
Remove noopener & noreferrer on WordPress links
* Remove rel="noopener noreferrer" in TinyMCE links
* @param array $init
* @return array
add_filter('tiny_mce_before_init', function ($init) {
$init['allow_unsafe_link_target'] = true;
return $init;
* Prevent rel="noopener noreferrer" from automatically being added on post save.
* @return void
add_filter('wp_targeted_link_rel', function () {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.