Hello @justing77
You can use our wordpress filter to strip those tags.
Try the next code to remove shortcodes and markup codes
<?php
function alter_feed_item( $attributes, $feed_id, $product_id ) {
// If you have shortcodes in your product description you can remove them with het next code
// Remove WordPress shortcodes from Description
$attributes['description'] = strip_shortcodes( $attributes['description'] );
// If you use Visual Composer markup in your product descrioptions you can remove Visual Composer markup with the next code.
$attributes['description'] = preg_replace("/\[(\/*)?vc_(.*?)\]/", '', $attributes['description'] );
// IMPORTANT! Always return the $attributes
return $attributes;
}
add_filter( 'wppfm_feed_item_value', 'alter_feed_item', 10, 3 );
Thank you but what is the wordpress filter? Where do i enter the code you sent?
If you’re not familiar with using filters in your wp-admin, the best and easiest way to do this is by using a plugin like “Code Snippets” (https://wordpress.org/plugins/code-snippets/). And here you can find a great video explaining the use if this plugin https://www.youtube.com/watch?v=I1_ZqnQmwJs.
Hello @justin77,
Where you able to solve the issue using the filter?
Hi @justin77,
I hope we were successful in helping you resolve your issue with our Feed Manager plugin! Since we have not heard back from you in the past 2 weeks and we don’t want to leave tickets open forever, I will now be marking this support topic as resolved. However, if we still haven’t resolved your issue please reach out to us as we would be more than happy to further assist you!
Thanks and have a great day!