Created
October 30, 2014 14:09
-
-
Save tribulant/58a3c0c294480ad43d9f to your computer and use it in GitHub Desktop.
Remove [wpmlcontent]
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
<?php | |
function replace_wpmlcontent($body = null) { | |
return preg_replace("/\[wpmlcontent\]/si", "", $body); | |
} | |
add_filter('wpml_wpmlcontent_before_replace', 'replace_wpmlcontent', 10, 1); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment