- Mastering WooCommerce 4
- Patrick Rauland
- 104字
- 2021-06-24 16:46:14
Surbma | WooCommerce Without Marketplace Suggestions
In WooCommerce 3.6, the WooCommerce team announced Marketplace Suggestions (https://woocommerce.wordpress.com/2019/04/03/extension-suggestions-in-3-6/). These inject recommendations for official WooCommerce extensions into the Orders screen and the Products screen for the store owner. They were adjusted just prior to the release and will likely evolve in the next few versions.
There's a plugin on the WordPress site called Surbma | WooCommerce Without Marketplace Suggestions, which disables these promotions, as shown here:
At the moment, there's only one important line in the plugin:
add_filter( 'woocommerce_allow_marketplace_suggestions', '__return_false' );
The code to disable the promotions is quite simple: one filter that removes them completely.
推薦閱讀
- UNIX編程藝術
- Node.js 10實戰
- Angular UI Development with PrimeNG
- JavaScript 網頁編程從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Unreal Engine 4 Shaders and Effects Cookbook
- Apache Camel Developer's Cookbook
- Visual C++從入門到精通(第2版)
- Microsoft Exchange Server 2016 PowerShell Cookbook(Fourth Edition)
- Python編程基礎教程
- C# 7.1 and .NET Core 2.0:Modern Cross-Platform Development(Third Edition)
- Raspberry Pi Blueprints
- 深入淺出 HTTPS:從原理到實戰
- 零基礎PHP從入門到精通
- 計算機常用算法與程序設計教程(第2版)
- Leaflet.js Essentials