Conditional output > custom shortcodes in newsletters
-
Hello MailPoet Staff,
we use the Filter Hook described here: https://support.mailpoet.com/knowledgebase/hook-to-add-your-own-shortcode/
It works perfect.Now we want customize the replacement value to a conditional output, like:
if ($tag_value === ‘geehrter’) {
if($wysija[‘field’][‘cf_1′]==’Herr’) {
$replacement = ‘geehrter’;
} else {
$replacement = ‘geehrte’;
}
}How can we access the $wysija[‘field’][‘cf_1’] parameter?
Thanx for help
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Conditional output > custom shortcodes in newsletters’ is closed to new replies.