Would it also be possible to only apply wp-noexternallinks filter?
Hello! You can extend function set_filters to make custom filter and then to appply it to your text.
For example, add the following code to function set_filters:
add_filter( 'wp_noexternallinks', array($this,'filter'),99 );
and then process your text like this:
echo apply_filters( 'wp_noexternallinks', '<a href="http://google.com" rel="nofollow">Angry google</a>' );
That’s exactly what I was looking for!
Thank you very much :)
Hi. I added this add_filter statement to plugin code in new version (22.214.171.124) so you don’t have to hack code any more : )
thx. Now the plugin is perfect :)
Masking links in custom fields with wp-noexternallinks # Articles #Jehy
Thanks for great plugin.
How can I mask external links in woo commerce product descriptions – in full description and in short description?
whats code for setting not to single.php link ??
how to use like here the comments u use redirect to ???
Mail (will not be published) (required)