[WordPress] 外掛分享: Hide Products by User Role for WooCommerce

首頁外掛目錄 › Hide Products by User Role for WooCommerce
WordPress 外掛 Hide Products by User Role for WooCommerce 的封面圖片
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
2 天前
最後更新
問題解決
WordPress 6.2+ PHP 7.4+ v1.1.1 上架:2025-11-05

內容簡介

總結:Hide Products by User Role for WooCommerce 讓您可以在不需編碼的情況下控制不同使用者角色的產品可見性。您可以隱藏特定產品、產品類別或所有產品,並且適用於全球規則。這個外掛對於批發/零售定價分離、B2B 商店隱藏零售商品、私人或會員商店以及僅限登入使用者的商店等場景非常適合。

問題與答案:
1. Hide Products by User Role for WooCommerce 如何幫助您控制產品的可見性?
- 這個外掛讓您可以隱藏特定產品、產品類別或所有產品,並且適用於不同使用者角色。
2. 如何設定全球規則來控制產品的可見性?
- 您可以在 WooCommerce > 設定 > 產品 > 使用者角色隱藏 中應用全球規則。
3. Hide Products by User Role for WooCommerce 是否支援變數產品?
- 是的,這個外掛支援變數產品,並可以根據不同變異管理可見性。
4. Hide Products by User Role for WooCommerce 是否可以進一步客製化?
- 是的,您可以使用自訂目標(透過篩選器擴展)來進行進一步客製化。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Hide Products by User Role for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Hide Products by User Role for WooCommerce gives store owners complete control over product visibility based on WordPress user roles — including guests (unauthenticated visitors). Set global rules from the WooCommerce settings screen, or configure visibility per product and per variation, all without writing a line of code.
Whether you run a B2B wholesale store, a membership site, or simply want to keep certain products away from guests, this plugin enforces visibility at the query level so hidden products never leak through search, archives, the REST API, or direct URL access.
Why store owners choose this plugin

Run B2B and B2C from a single store — keep wholesale and retail catalogs side by side and show each audience only what they should see
Protect member-only or exclusive products — restrict visibility to subscribers, members, or any custom role
Increase catalog relevance — show each user role a curated product set and reduce catalog noise
Block guest browsing — require an account before any product is visible, turning your shop into a private catalog
Zero performance overhead — visibility is enforced at the WordPress/WooCommerce query level, not as post-load filtering

Key Features
Global visibility rules (WooCommerce > Settings > Products > Hide by User Roles)

Hide all products from a role with a single rule
Hide products by category or tag per role
Unlimited rules with drag-and-drop priority ordering
Duplicate existing rules to create variations quickly
Rule-count badge in the WooCommerce settings navigation

Per-product and per-variation control

Dedicated “Hide by Role” tab on every WooCommerce product edit screen
Select any combination of roles to hide that individual product from
Full support for variable products: set visibility separately on each variation

Complete query coverage — hidden means truly hidden

Shop page, category archives, and tag archives
WordPress and WooCommerce search results
FiboSearch (DGWT WooCommerce Ajax Search) compatibility
WooCommerce REST API (with block-editor edit-context exemption so admins can still select products)
Single product page redirect — guests are sent to the login page; logged-in restricted users are sent to the shop
Block themes — replaces the “No products found” block with a role-aware login or logout prompt

Developer-friendly extensibility

20+ filters and actions covering every stage of the visibility pipeline
Inject runtime rules (subscription-based, time-limited) without touching plugin files
Add custom taxonomy targets, override redirect URLs, or map membership levels to roles
HPOS (High Performance Order Storage) compatible

Perfect for

Wholesale / B2B stores — hide retail products from registered wholesalers, or hide wholesale products from regular customers
Membership and subscription sites — restrict premium products to paying members
Private catalogs — require an account before any product is shown
Tiered product access — show different product sets to different customer segments

延伸相關外掛

文章
Filter
Apply Filters
Mastodon