If you are using Visual Composer to create your content in WordPress you may find the used short codes in your campaign.

By default Mailster will strip shortcodes but stripping those shortcodes would cause stripping the actual content as well. The get rid of the shorcodes in your campaign you have to add custom snippet to your themes functions.php.

Dynamic Method

add_filter( 'mailster_replace_post_content', 'mailster_replace_VC_shortcodes_dynamic', 10 , 3 );
add_filter( 'mailster_replace_post_excerpt', 'mailster_replace_VC_shortcodes_dynamic', 10 , 3 );

function mailster_replace_VC_shortcodes_dynamic( $replace_to, $post, $extra ) {
    $shotcodes_tags = array( 'vc_row', 'vc_column', 'vc_column', 'vc_column_text', 'vc_message' );

    $replace_to = preg_replace( '/\[(\/?(' . implode( '|', $shotcodes_tags ) . ').*?(?=\]))\]/', ' ', $replace_to );

    return $replace_to;
}

This will remove short codes on dynamic tags like {post_content:-1}. If you have a custom post type where you use Visual Composer you need to add the filter to this post type as well:

add_filter( 'mailster_replace_MY-CUSTOM-POSTTYPE_content', 'mailster_replace_VC_shortcodes_dynamic', 10 , 3 );

(replace “MY-CUSTOM-POSTTYPE” with your actual post type name).

Static Method

To remove the short codes on a static post use this snippet:

add_filter( 'mailster_auto_post', 'mailster_replace_VC_shortcodes_static', 10, 2);

function mailster_replace_VC_shortcodes_static( $data, $post ) {
    $shotcodes_tags = array( 'vc_row', 'vc_column', 'vc_column', 'vc_column_text', 'vc_message' );

    $data['content'] = preg_replace( '/\[(\/?(' . implode( '|', $shotcodes_tags ) . ').*?(?=\]))\]/', ' ', $data['content'] );

    return $data;
}

This will only work for Visual Composer but if you are using another page builder which uses short codes you just have to replace the $shotcodes_tags array with the short codes you like to remove.