VibeFox Hide Products — Help
Requirements
WordPress: 6.0 or later.
WooCommerce: 7.0 or later, installed and active.
PHP: 8.0 or later.
Geolocation (for country rules only): the visitor country is detected by WooCommerce. For IP-based detection set up WooCommerce > Settings > Integration > MaxMind Geolocation with a free MaxMind license key, or use a CDN that sends a country header (see Configuration).
VibeFox license key: bought on vibefox.net. One key works on one domain.
Installation
1. In WordPress go to Plugins > Add New > Upload Plugin, choose the plugin ZIP file and click Install Now. You can also upload the vfw_hide_product folder to /wp-content/plugins/ by FTP.
2. Click Activate. WordPress opens VF Hide Products > Settings > License. Paste your VibeFox license key into License key and click Activate. Until the key is active the plugin stays switched off and its menu shows only Settings (see License key).
3. Once the key is active, the menu VF Hide Products appears in the WordPress admin with Dashboard, Rules and Settings.
4. Open VF Hide Products > Rules, click Add new rule, choose the products, visitors and schedule, set Status to Active and click Save rule.
Configuration
The plugin screens are available to users who can manage WooCommerce (Administrator and Shop manager).
Rules
VF Hide Products > Rules lists the rules with Order, Active, Rule, Products, Visitors and When. Turn a rule on or off with its Active switch, use Duplicate and Delete, search with Search rules and drag rows to change the order. The rule editor has three blocks.
Rule
Rule name: a name for the list, for example "Wholesale range — hidden for guests".
Priority: lower numbers appear first in the rules list.
Status: Active or Inactive. Only active rules hide products.
Products
Apply to: which products the rule hides.
Visitors
Apply for: from whom the products are hidden. Rules apply to the storefront only; in wp-admin everybody sees all products. "Everyone" includes administrators.
When
Active: Always or On a schedule. The schedule uses the site time zone, and all limits you set must match:
Rules switch on and off on time; no cron task is needed.
Export / Import rules
On the Rules page, Download rules (JSON) exports all rules. Import from file or …or paste JSON and Import rules add the rules to the existing ones. Products, categories, tags and users are matched by ID, so check them after importing to another site.
Product editor
The box VibeFox Hide Products on the product edit screen has two options: Follow visibility rules (default) and Hide this product, which hides the product for everyone on the storefront.
Settings
The settings are on VF Hide Products > Settings, in tabs on the left. Click Save Changes after editing.
General
Cache lifetime (seconds): the list of hidden products is cached per combination of matching rules. It is cleared automatically when rules, products, categories or the product box change, and schedules switch on time. 0 means no cache (not recommended for large catalogs). Default: 3600.
Geolocation
Used by rules with the condition Visitor country. The country is detected from the visitor IP address by WooCommerce. The tab shows whether the MaxMind database (WooCommerce) is installed and Your country (this request) with its source.
Trust the CDN country header: reads CF-IPCountry (Cloudflare), CloudFront-Viewer-Country, X-Country-Code or GEOIP_COUNTRY_CODE. Turn it on only when the site is behind such a CDN or proxy, otherwise any visitor can send a fake header. Default: off.
Use external lookup services: when there is no local database, WooCommerce asks public geolocation services. The visitor IP is sent to a third party, and results are cached per IP. Mention it in your privacy policy. Default: off.
Fall back to the billing country: logged-in customers whose IP country is unknown are matched by the billing country of their account. Default: on.
Logging
Enable logging: records rule changes, imports and refused attempts to buy hidden products. Default: off. Below the switch the log is shown with Level filters (Info, Warnings, Errors), dates and Search log.
Uninstall & Clear
Delete all data on uninstall: when the plugin is deleted, removes its tables, settings, logs, caches and per-product visibility settings. Deactivation never deletes data. Default: off.
Data Cleanup: buttons that delete data at once, after a confirmation:
License
The VibeFox license block (see License key).
Status
Shows the PHP, WordPress and WooCommerce versions against the minimum versions, and the Multilingual support card with the detected language plugin.
Import / Export
Download Export File saves the settings as a JSON file. Import loads settings from a JSON file or pasted text.
How it works
On every storefront request the plugin finds the active rules that match the visitor (role, login, user, country) and the current time, and builds the list of products they hide, together with the products hidden in the product editor. A product is hidden when at least one matching rule hides it.
Hidden products disappear from every list: the shop, category and tag archives and their counts, search (including AJAX search), WooCommerce widgets and blocks, related products, upsells and cross-sells, menus, the public REST and Store API, XML sitemaps and RSS feeds. Their reviews and previous/next product links are hidden too.
A hidden product returns a 404 page at its direct URL. Quick view and add-to-cart links of hidden products are refused: the customer sees "Sorry, this product cannot be purchased." With multilingual plugins the translations of a hidden product are hidden as well.
In wp-admin everybody sees all products, so you manage hidden products as usual. The WooCommerce management API is not filtered.
Dashboard
VF Hide Products > Dashboard shows the number of Active rules, Scheduled rules and products Hidden in the meta box, the list of active rules, and the notes under Good to know.
Page caching
Rules by role, country or schedule change the page per visitor. Exclude shop pages from full-page caches, or vary the cache by login and country. Rules for guests only work with page caching as long as logged-in users bypass the cache.
License key
VibeFox license key: bought on vibefox.net. One key works on one domain.
The plugin works only with an activated key. Without it the plugin is switched off: its features, shortcodes, blocks, admin pages, scheduled tasks and e-mails do not run, and its menu shows only Settings with the License tab. Your settings and data are kept and come back as soon as a key is activated. Right after you activate the plugin in Plugins, WordPress opens this tab.
Open VF Hide Products > Settings > License, paste the key into License key and click Activate. The plugin switches on at once (the page reloads). The block License — VibeFox Hide Products then shows the masked key, the status Active until with the date and the domain, the buttons Check now, Change key, Remove key and the link Manage licenses and domains in your account.
Messages under the field: The key looks incomplete — copy the whole key from your account. (nothing is sent), Key not found. Check that you copied the whole key from your account., This key belongs to another product. (use the key bought for VibeFox Hide Products) and Domain limit reached (free a slot for this domain in your account, then click Check now). After the site address changes, click Check now.
An expired license keeps the plugin working, but without updates and support. Remove key switches the plugin off on this site; the domain slot is freed only in your vibefox.net account. If the license server cannot be reached, the plugin keeps working on the last known status. When the plugin is deleted, the key and its status are always removed.
Troubleshooting
The plugin menu shows only Settings: the license key is not active. Open VF Hide Products > Settings > License and click Activate (or Check now if a key is already entered); the messages under the field are explained in License key.
A product is still visible: check that the rule is Active, the visitor matches Apply for and the schedule matches the current time in the site time zone. Rules work on the storefront only: as an administrator you see the product unless Everyone is selected. Clear your page cache and click Clear Visibility Cache in Uninstall & Clear.
Country rules do not work: open Settings > Geolocation. If MaxMind database (WooCommerce) shows Not configured, set it up in WooCommerce or turn on Trust the CDN country header behind a CDN. If the country is unknown, rules in the "these countries" mode do not match the visitor; the "all countries except these (and unknown)" mode does.
Visitors see the wrong products with a page cache: exclude shop pages from the full-page cache or vary it by login and country.
"Invalid file: expected a JSON export of Hide Products rules.": the imported file is not a rules export of this plugin.
"The rule order has changed. Try again.": the rules were changed in another window. Reload the Rules page.
Customers report that a product cannot be bought: turn on Enable logging. Refused attempts to buy hidden products are written to the log.
Uninstall
Deactivating the plugin keeps all data, and all products are visible again. To remove it, deactivate and delete it on the Plugins page. The license key and license status of this plugin are always removed. If Delete all data on uninstall was on, deleting also removes the rules and log tables, the settings, caches and the per-product visibility settings. Otherwise they stay for a later re-install. Products are never deleted.
MaxMind, GeoLite2, Cloudflare and Amazon CloudFront are trademarks of their respective owners. This plugin is not affiliated with or endorsed by them.
