Quickly remove the “no opener nor eferrer” style of WordPress

If we are careful friends, we should see that the links added by our default WordPress program will have their own class style “noopener noreferrer”. What does this mean? In fact, we don’t need such a function. Although it comes with it by default, it’s better to remove it.

First, it is forbidden to add

/ / remove attributes < br > fromadd_ filter(‘tiny_ mce_ before_ init’,’tinymce_ allow_ unsafe_ link_ target’);
functiON tinymce_ allow_ unsafe_ link_ target( $mceInit ) {
$mceInit[‘allow_ unsafe_ link_ target’]=true;
return $mceInit;
}

That is added to the current topic Functions.php File.

Second, remove the existing attributes

If we have these attributes in previous articles, how can we batch remove them?

UPDATE wp_ posts SET post_ content = REPLACE( post_ content, ‘noopener noreferrer’, ” )

We’d better back up the database before executing the SQL command.

Related Article
how to automatically add tag links to the article

Today, I'd like to share a WordPress SEO optimization tip, which can realize the automatic addition of keyword tags in Read more

WordPress displays the registration time of the login user in the frontend

When using WordPress to build a website, some users want to display the user registration time in the frontend, but Read more

WordPress adds the number of SQL queries at the bottom

An excellent woodpress theme is definitely that the less SQL consulting is used, the better. How can we see how Read more

Some WordPress articles can be seen after comments / replies

If we want to hide part of the content of the article and need the user's comments and replies to Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image