Created
September 21, 2014 06:15
-
-
Save mattbeck/54a61278fdbf4873762c to your computer and use it in GitHub Desktop.
force relative urls in content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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