Created
November 25, 2014 11:02
-
-
Save tribulant/b2f6c3ffcde9d0381c00 to your computer and use it in GitHub Desktop.
Filter content of email
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
function replace_wpmlcontent($body = null) { | |
$newbody = preg_replace("/\[wpmlcontent\]/si", "testing this out", $body); | |
return $newbody; | |
} | |
add_filter('newsletters_theme_before_wpmlcontent_replace', 'replace_wpmlcontent', 10, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment