Keep certain tags in your campaigns

By default, Mailster will remove all unused tags in the final version of your campaign. To prevent that you can whitelist certain tags with some custom code.

Use the ‘mailster_keep_tags‘ filter to add tags you like to keep in your campaign:

add_filter( 'mailster_keep_tags', function( $tags ){
    $tags[] = 'my-special-tag';
    $tags[] = 'my-other-tag';
    return $tags;
});

This will keep {my-special-tag} and {my-other-tag} in your campaign, as good variations like {my-special-tag:123} or {my-other-tag:456|my_fallback}.