| 开发者 | woomanagers |
|---|---|
| 更新时间 | 2026年10月23日 13:47 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
woomanagers_replace_price_text — Filter the replacement text shown instead of the pricewoomanagers_replace_add_to_cart_text — Filter the replacement text shown instead of the Add to Cart buttonwmhp_hide_price_register_post_type — Customize the Hide Price Rules post type registration
Translation Ready
Fully internationalized with a .pot file included. Ready for translation into any language./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. The plugin will automatically deactivate and show an admin notice if WooCommerce is not detected.
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 for WooCommerce — Pro 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 woomanagers.com. For help, open a topic in the wordpress.org support forum for this plugin.
The plugin is designed for standard WordPress installations. Multisite support has not been officially tested.
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.