Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
force relative urls in content
add_filter('the_content', 'my_content_filter');
function my_content_filter($content){
$content = str_ireplace('http://url-to-strip.com','',$content);
return $content;
}
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.