Disable Marketplace Suggestions from the WooCommerce Settings
The Marketplace Suggestions can be disabled from within the WooCommerce settings, by going to:
WP Dashboard > WooCommerce > Settings > WooCommerce.com > Marketplace Suggestions
and unchecking the "Show Suggestions" option, as shown here:

Disable Marketplace Suggestions Programmatically
If you'd like to disable marketplace suggestions in code, you can do so using the following PHP code:
add_filter( 'woocommerce_allow_marketplace_suggestions', '__return_false' );
add_filter('woocommerce_show_marketplace_suggestions', function ($show) { return 'no'; });
I found the first filter on Puri.io, but found it didn't work for my needs (fixing an infinite loop in the product edit pages that was somehow triggered, though perhaps not caused, by Marketplace Suggestions). On investigation, it turned out that some parts of WooCommerce's marketplace suggestions functionality applied the filter, while some did not. I solved this with the second filter which overrides the option as soon as it is retrieved from the database and more completely disables the feature.
0 Comments