Skip to content
WJunction - Webmaster Forum

help regarding Hide links with anonym.to

Status
Not open for further replies.

2 comments

You can try something like this in your functions.php:
PHP:
function anonymize_links($content) {
  $content = preg_replace('#href="([^"]+)"#', 'href="http://anonym.to/?$1"', $content);
  return $content;
}
add_filter('the_content','anonymize_links');
It doesn't handle the exceptions though.
 
Status
Not open for further replies.

About the author

P
Active Member · Joined
Loops-SAMPLes Primeloops-fat loud
1,497
Messages
597
Reactions
113
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom