WC Hide Prices (Toggle)
Hide or replace WooCommerce product prices and short descriptions, with targeting by products and/or categories. Optionally disable Add to cart for matched products. Includes bulk tools to Draft/Publish matched products and bulk update Regular Price.
by SoftechGenics · github.com/sajidashrafdev/wc-hide-prices-toggle-
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sajidashrafdev/wc-hide-prices-toggle-/archive/refs/heads/main.zipHide or replace WooCommerce product prices and short descriptions, with targeting by products and/or categories. Optionally disable Add to cart for matched products. Includes bulk tools to Draft/Publish matched products and bulk update Regular Price.
Features
- Hide/replace price on the frontend
- Hide/replace short description on the frontend
- Optionally disable Add to cart (makes matched products not purchasable)
- Target by:
- All products
- Specific products (IDs / SKUs)
- Categories
- Products OR Categories
- Bulk tools (for matched products):
- Publish ↔ Draft
- Bulk set Regular Price (optional: clear sale price)
- Variable products supported (updates variations and re-syncs)
Requirements
- WordPress 6.0+
- WooCommerce installed and active
Installation
Option A: Install from ZIP
- Download this repository as a ZIP.
- In WordPress Admin: Plugins → Add New → Upload Plugin
- Upload the ZIP and activate.
Option B: Manual install
- Copy the
wc-hide-prices-togglefolder into:wp-content/plugins/ - Activate the plugin from Plugins.
Usage
- Go to WooCommerce → Hide Prices
- Configure:
- Hide prices on the frontend
- Hide/replace short description
- Hide/disable Add to cart
- Choose Targeting:
- All products
- Specific products (enter Product IDs or SKUs, one per line)
- Selected categories
- Products OR Categories
- (Optional) Set replacement text:
- Price replacement text (example:
Login to see price) - Short description replacement (basic HTML allowed)
- Price replacement text (example:
Bulk Actions
On the same page, use Bulk Actions to run one-time operations on all matched products:
- Move matched products to Draft
- Publish matched products
- Bulk set Regular Price (optionally clear Sale Price)
Note: Bulk price updates modify actual product prices. Variable products update each variation and re-sync.
How targeting works
- Product list accepts Product IDs or SKUs (one per line).
- Variations are supported: a variation can match if its parent product ID/SKU is listed.
- Category targeting checks product categories (variations check the parent product’s categories).
Data stored
Settings are stored in the WordPress options table under:
wchpt_settings
Support / Contributions
Issues and pull requests are welcome.