If you’re using Page Builder on the WooCommerce product pages (in tabs) and you’re experiencing duplicated content (might be also in some other areas of the website) there is a high chance that that’s a conflict with plugins using the
the_content filter. We found out about this bug with the plugin WooCommerce Tab Manager but it might be with other plugins as well.
If some plugin you’re using is using the
the_content to filter some piece of content that’s not the default content on the page, there will be a conflict. Here is the official response from Page Builder authors.
The “not ideal, but it works” solution is that the filter is temporarly removed when it’s called in the conflicting plugin. That’s done by “wrapping” the
apply_filters( 'the_content', $some_custom_content ) with the
For WooCommerce Tab Manager plugin, here is the example what to change in the code of the file
wp-content/plugins/woocommerce-tab-manager/class-wc-tab-manager.php. Around line 825 you should locate this line:
$content = apply_filters( 'the_content', $tab_post->post_content );
You should wrap this line in two other lines, so it will look like this:
remove_filter( 'the_content', array( SiteOrigin_Panels::single(), 'generate_post_content' ) ); $content = apply_filters( 'the_content', $tab_post->post_content ); add_filter( 'the_content', array( SiteOrigin_Panels::single(), 'generate_post_content' ) );
This should resolve the issue, but every time you will update the plugin WooCommerce Tab Manager, the fix will be gone and it should be manually added again.