Title: Hide Product Prices Until Login – for WooCommerce
Author: nelegines
Published: <strong>2025年10月5日</strong>
Last modified: 2025年10月5日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://s.w.org/plugins/geopattern-icon/hide-product-prices-until-login-for-
woocommerce.svg)

# Hide Product Prices Until Login – for WooCommerce

 作者: [nelegines](https://profiles.wordpress.org/nelegines/)

[ダウンロード](https://downloads.wordpress.org/plugin/hide-product-prices-until-login-for-woocommerce.1.2.2.zip)

 * [詳細](https://ja.wordpress.org/plugins/hide-product-prices-until-login-for-woocommerce/#description)
 * [レビュー](https://ja.wordpress.org/plugins/hide-product-prices-until-login-for-woocommerce/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/hide-product-prices-until-login-for-woocommerce/#installation)
 * [開発](https://ja.wordpress.org/plugins/hide-product-prices-until-login-for-woocommerce/#developers)

 [サポート](https://wordpress.org/support/plugin/hide-product-prices-until-login-for-woocommerce/)

## 説明

**WooCommerce Hide Prices Until Login or Region** helps store owners control who
can see prices and add products to their cart. Useful for wholesale stores, restricted
content, or region-specific pricing policies.

### Developer Features

This plugin supports integrations with premium extensions via a global override 
flag and centralized architecture:

 * Set `$GLOBALS['hpulr_force_hide'] = true` before calling `HPULR_Price_Handler::
   filter_price()` to trigger the free plugin’s hidden price message
 * Inject premium settings using `hpulr_additional_settings` filter
 * Automatically save premium and custom fields via centralized update hook
 * Sanitize both free and premium fields with centralized filter `sanitize_all_options`

🎯 **Key Features:**
 – Hide prices for non-logged-in users – Disable Add to Cart
for guests – Geolocation-based visibility (by allowed countries) – User role-based
visibility (NEW in 1.2.0) – Custom message with `{login_url}` support – Redirects
users back to the product after login – Integrated directly into WooCommerce settings–
Per-product custom message override (Lite) – Test mode for admin previewing behavior–
Supports all product types (simple, variable, etc.) – Centralized saving and sanitization(
NEW in 1.2.1) – Compatible with premium add-ons (e.g., category-based hiding)

### License

This plugin is licensed under the GPLv2 or later.

## インストール

 1. Upload the plugin files to the `/wp-content/plugins/hide-product-prices-until-login`
    directory or install through the WordPress plugin screen.
 2. Activate the plugin through the “Plugins” menu.
 3. Go to **WooCommerce  Settings  Products  Hide Prices** to configure.

## FAQ

### Can I add a login link in the message?

Yes! Use the `{login_url}` placeholder in your message. It will be automatically
replaced with a clickable link to the login page.

### Can I show a different message for individual products?

Yes! Edit a product and use the “Hide Price Message” field in the sidebar to override
the global message.

### Will it redirect users back after login?

Yes. After logging in, users are redirected to the product they were viewing.

### Can I simulate as a guest while logged in?

Yes. Enable “Test Mode” in the plugin settings to preview hidden prices while logged
in as an admin.

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

Hide Product Prices Until Login – for WooCommerce はオープンソースソフトウェアです。
以下の人々がこのプラグインに貢献しています。

貢献者

 *   [ nelegines ](https://profiles.wordpress.org/nelegines/)

[“Hide Product Prices Until Login – for WooCommerce” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/hide-product-prices-until-login-for-woocommerce)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/hide-product-prices-until-login-for-woocommerce/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/hide-product-prices-until-login-for-woocommerce/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/hide-product-prices-until-login-for-woocommerce/)
を [RSS](https://plugins.trac.wordpress.org/log/hide-product-prices-until-login-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.2.1

 * ✅ REFACTOR: Centralized settings saving and sanitization for both free and premium
   fields
 * ✅ NEW: Added filter `hpulr_additional_settings` to allow premium plugins to 
   register their settings
 * ✅ NEW: Unified `sanitize_all_options` method for secure value handling
 * ✅ FIX: Prevented fatal error when sanitizing array-based inputs
 * ✅ REFACTOR: JavaScript update logic for role and category tables generalized
 * ✅ Tweak: Updated hidden field support for WooCommerce compatibility

#### 1.2.0

 * ✅ NEW: Hide prices based on user roles
 * ✅ NEW: Dynamic UI to manage restricted roles in admin
 * ✅ FIX: Ensures restricted roles are saved as an array
 * ✅ FIX: Proper handling of empty state in roles table (no-available-data)
 * ✅ FIX: JavaScript updates to restore placeholder row when roles removed
 * ✅ REFACTOR: Moved HTML render logic to template files for better maintainability
 * ✅ Tweak: Minor styling and JS enhancements for settings UI
 * ✅ NEW: Added support for external price hiding override via `$GLOBALS['hpulr_force_hide']`
 * ✅ NEW: This enables premium add-ons to trigger hidden price logic (e.g., for
   category-based restrictions)

#### 1.1.0

 * ✅ NEW: Per-product custom message override
 * ✅ NEW: Hide Add to Cart button in product loops
 * ✅ NEW: Login redirect after login back to product
 * ✅ NEW: Admin Test Mode for debugging
 * ✅ Tweak: Global `{login_url}` placeholder replacement
 * ✅ Updated: Translatable strings and inline documentation

#### 1.0.0

 * Initial release with price hiding and region-based logic

## メタ

 *  バージョン **1.2.2**
 *  最終更新日 **1年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 5.8またはそれ以降 **
 *  検証済み最新バージョン: **6.7.9**
 *  PHP バージョン ** 7.4またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/hide-product-prices-until-login-for-woocommerce/)
 * タグ
 * [geolocation](https://ja.wordpress.org/plugins/tags/geolocation/)[hide prices](https://ja.wordpress.org/plugins/tags/hide-prices/)
   [login required](https://ja.wordpress.org/plugins/tags/login-required/)[user roles](https://ja.wordpress.org/plugins/tags/user-roles/)
   [woocommerce](https://ja.wordpress.org/plugins/tags/woocommerce/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/hide-product-prices-until-login-for-woocommerce/advanced/)

## 評価

レビューはまだ送信されていません。

[Your review](https://wordpress.org/support/plugin/hide-product-prices-until-login-for-woocommerce/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/hide-product-prices-until-login-for-woocommerce/reviews/)

## 貢献者

 *   [ nelegines ](https://profiles.wordpress.org/nelegines/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/hide-product-prices-until-login-for-woocommerce/)