| 开发者 | woomanagers |
|---|---|
| 更新时间 | 2026年11月13日 13:25 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
b2bmanagers_replace_price_text — Filter the replacement text shown instead of the priceb2bmanagers_replace_add_to_cart_text — Filter the replacement text shown instead of the Add to Cart buttonb2bmanagers_custom_button_atts — Filter the class and style attributes of the custom link buttonwmhp_hide_price_register_post_type — Customize the Hide Price Rules post type registration
The older woomanagers_replace_price_text, woomanagers_replace_add_to_cart_text and woomanagers_custom_button_atts filters still run, so code written for earlier versions keeps working. New code should use the b2bmanagers_ names..pot file included. Ready for translation into any language.
Built to WordPress and WooCommerce Standards
/wp-content/plugins/, or install it directly from the WordPress plugin directory.Yes. Rules are applied correctly to variable products. When a variation is displayed, the plugin looks up the parent product to check which rules apply, ensuring consistent behavior across all variations.
Yes. Each rule lets you target one or more user roles independently. For example, you can create one rule that hides prices for Guests, and a separate rule that hides the Add to Cart button for Customers but not Wholesalers.
Yes. In addition to targeting roles, you can select specific registered users by name so a rule applies only to those accounts.
Yes. Each rule can be scoped to specific products, categories, tags, or brands — or set to apply to all products. You have full control.
Yes. Choose "Replace with custom link button", enter your button text, and paste any URL — including a WhatsApp chat link (https://wa.me/...), a contact page, a quote form, or any external URL.
Yes. Rules are enforced on both archive (shop, category, tag) pages and on single product pages.
No. The plugin hides prices at the display level using WooCommerce's standard price filter. Product pages remain fully indexable by search engines.
Yes. WooCommerce must be installed and activated. If WooCommerce is not active, the plugin stays active but does nothing and shows an admin notice until WooCommerce is activated.
Unlimited. There is no cap on the number of rules.
Yes. The Add to Cart replacement logic explicitly handles WooCommerce Subscription product types.
Yes. Hide Price & Add to Cart Pro for WooCommerce adds geolocation targeting (country, state, city, ZIP code), inline enquiry forms (Contact Form 7, WPForms, Gravity Forms), variable product selectors on archive pages and a global performance settings panel. Every feature listed on this page is included in the free plugin.
Setup guides and documentation are on the plugin page at b2bmanagers.com. For help, open a topic in the wordpress.org support forum for this plugin.
When you delete the plugin from the Plugins screen, it asks whether to keep your Hide Price Rules or delete them too. Kept rules come back if you install the plugin again. If Hide Price & Add to Cart Pro or the B2B Managers Suite is installed, the rules are always kept because they use them.
The plugin is designed for standard WordPress installations. Multisite support has not been officially tested.
b2bmanagers_replace_price_text, b2bmanagers_replace_add_to_cart_text and b2bmanagers_custom_button_atts. The old woomanagers_* names still run, so existing customisations keep working; please switch to the new names.yourtheme/woocommerce/wm-hide-price/ are now found.checked attributes in the rule editor.wmhp_should_apply_rules filter and wmhp_after_single_add_to_cart_replacement action.woomanagers_custom_button_atts filter to modify the button class and style attributes programmatically.