Version1.0.0
Requires WP5.8
Tested up to6.8
Slughide-product-categories-products-for-woocommerce
Changelog
  • Initial release
Hide Product Categories & Products for WooCommerce

Hide Product Categories & Products for WooCommerce

Hide Product Categories & Products for WooCommerce – Take complete control of product visibility with category tree checkboxes and AJAX-powered live search with visual chip selection. Hide entire categories or individual products instantly without deleting any data. Perfect for seasonal inventory, wholesale catalogs, and member-only products.

FREE

Lifetime License + Lifetime Updates

14-day money-back guarantee
Pay securely with Visa Mastercard American Express Discover Klarna Revolut Pay

Want more than one plugin? Your discount is applied automatically in the cart:

  • With 2 premium plugins in your cart → 10% off both

  • With 3 premium plugins15% off all of them

  • With 4 or more premium plugins20% off your plugins

Free plugins do not count towards the bundle and are not discounted.
The discount is applied automatically in the cart and at checkout, no coupon needed.

Do you think something is missing from this plugin?

Request a feature

Need a different customization on your website?

Submit a customization request

Hide Product Categories & Products for WooCommerce is a premium visibility control plugin that gives you complete power to hide products and entire categories from your storefront. Perfect for managing seasonal inventory, wholesale catalogs, member-only products, or work-in-progress items, this plugin features an intuitive category tree interface and smart AJAX-powered product search with visual chip selection for effortless product visibility management!

Key Features

Category Tree Visibility Control

  • Visual hierarchical category tree with checkboxes
  • Hide entire categories and all their products instantly
  • Parent and child category relationships preserved
  • Indented tree view for clear hierarchy visualization

Smart AJAX Product Search

  • Live search activated after typing 3+ characters
  • Instant product suggestions as you type
  • Returns top 20 matching results in real-time
  • No page refreshes required for seamless experience

Visual Chip Interface

  • Selected products appear as removable chips/tags
  • One-click removal with X button on each chip
  • Clear visual confirmation of hidden products
  • Modern, intuitive tag-based selection system

Individual Product Control

  • Product visibility meta box in each product editor
  • Quick checkbox toggle to hide individual products
  • Works independently from category settings
  • Perfect for temporarily hiding specific items

Comprehensive Frontend Filtering

  • Hidden products excluded from shop page
  • Removed from category archive pages
  • Filtered out of tag pages and search results
  • Complete visibility control across all product listings

Safe Data Management

  • Products never deleted from database
  • Simple meta flag system for visibility control
  • Unhide products anytime without data loss
  • Categories stored as option, easily reversible

Multilingual Ready

  • Full WPML compatibility and string translation
  • Polylang support for multilingual stores
  • All interface text translatable
  • Automatic registration of admin strings

VGDEV Solutions Integration

  • Unified dashboard for all VGDEV plugins
  • Professional branding and organization
  • Quick access from WooCommerce menu
  • Settings link directly in plugins page

Setup Instructions

  1. Install & Activate

    After purchasing the plugin:

    • Upload to /wp-content/plugins/hide-product-categories-products-for-woocommerce/
    • Activate through the WordPress Plugins menu
    • WooCommerce must be installed and active
    • Navigate to WooCommerce > Visibility Control
  2. Hide Product Categories

    In the left panel of Visibility Control page:

    Category Tree Selection:
    • View your complete WooCommerce category hierarchy
    • Check any category to hide it from the frontend
    • Subcategories display indented beneath parents
    • All products in checked categories will be hidden
    • Multiple categories can be hidden simultaneously
  3. Hide Individual Products

    In the right panel, use the smart search system:

    AJAX Live Search:
    • Type at least 3 characters in the search box
    • Product suggestions appear automatically below
    • Click any product from the suggestions list
    • Selected product appears as a chip/tag below search
    • Click the X on any chip to remove that product
    • Search and select as many products as needed
    How the Chip System Works:
    • Each selected product displays as a visual chip
    • Chips show product name with remove button (X)
    • Previously hidden products load automatically as chips
    • Hidden form inputs store product IDs for saving
    • Clean, visual representation of all hidden products
  4. Alternative: Hide from Product Editor

    For individual product control directly in the editor:

    • Edit any WooCommerce product
    • Find the Product Visibility meta box (right sidebar)
    • Check "Hide this product from front-end"
    • Update the product to save changes
    • Product immediately hidden from all frontend listings
  5. Save Settings

    Click Save Settings to apply all changes:

    • Selected categories saved to options table
    • Hidden products updated with meta flags
    • Previously hidden products not in current selection are unhidden
    • Success notice confirms settings were saved
    • Changes take effect immediately on frontend
  6. Verify on Frontend

    Test your visibility settings:

    • Visit your shop page - hidden categories/products should not appear
    • Check category pages - products should be filtered correctly
    • Test search functionality - hidden items excluded from results
    • Verify tag archive pages also respect visibility settings

How It Works

Category-Based Hiding:

  1. Admin selects categories via checkbox tree interface
  2. Category term IDs stored in WordPress options table
  3. Frontend queries filter out products in hidden categories
  4. Tax query excludes selected category IDs with 'NOT IN' operator
  5. All products belonging to hidden categories become invisible

Individual Product Hiding:

  1. Admin searches for products using AJAX live search
  2. Selected products appear as visual chips with product names
  3. Product IDs stored as custom meta field _hideprca_hide_product
  4. Meta value set to "yes" for hidden, "no" for visible products
  5. Frontend meta query excludes products where meta = "yes"

Product Editor Integration:

  • Custom meta box appears in product editor sidebar
  • Single checkbox controls visibility for that product
  • Changes saved via WordPress post meta system
  • Works independently from category and search selections
  • Provides quick product-level control without leaving editor

Frontend Query Modification:

  • Plugin hooks into pre_get_posts action
  • Only affects main queries on shop, category, tag, and search pages
  • Combines tax query (categories) and meta query (individual products)
  • Admin area remains unaffected - all products visible in dashboard
  • No direct database modifications - uses WP query filters only

AJAX Search Mechanics:

  • JavaScript detects input after 3+ characters typed
  • AJAX request sent to WordPress backend with nonce security
  • WP_Query searches product titles matching search term
  • Returns JSON array of product IDs and titles (max 20 results)
  • JavaScript displays suggestions and handles chip creation

Why Choose Hide Product Categories & Products?

  • Complete Visibility Control - Hide products by category or individually with flexible options
  • No Data Deletion - Products never removed from database, safely hide and unhide anytime
  • AJAX-Powered Search - Find products instantly without page reloads or scrolling through lists
  • Visual Chip Interface - Modern tag-based selection for clear visibility of hidden products
  • Category Tree View - See your entire category hierarchy at a glance with intuitive checkboxes
  • Multiple Control Points - Hide via settings page or directly in product editor for flexibility
  • Search Results Protected - Hidden products excluded from all frontend searches automatically
  • Performance Optimized - Efficient query filtering with minimal database overhead
  • Multilingual Support - WPML and Polylang compatible for international stores
  • Admin Always Visible - All products remain visible in WordPress admin for management
  • No Configuration Required - Works immediately after activation with WooCommerce
  • Reversible Actions - Uncheck categories or remove chips to instantly restore visibility

Perfect For

  • Seasonal Inventory - Hide off-season products and entire seasonal categories
  • Wholesale Catalogs - Show different products to retail vs wholesale customers
  • Member-Only Products - Hide premium products from non-members temporarily
  • Work in Progress - Hide products being prepared before public launch
  • Discontinuing Items - Keep products in database while removing from storefront
  • Flash Sales Prep - Prepare sale categories hidden until launch time
  • B2B Stores - Show different catalog sections to different user types
  • Product Testing - Hide test products from customers while keeping in system
  • Inventory Management - Temporarily hide out-of-stock categories during restocking
  • Regional Products - Hide certain products for specific geographic markets

System Requirements

  • WordPress 5.0 or higher
  • WooCommerce 5.0 or higher (must be installed and active)
  • PHP 7.4 or higher
  • JavaScript enabled in browser for AJAX search functionality

Take Control of Your Product Visibility

The Hide Product Categories & Products plugin includes lifetime updates and dedicated support. Manage seasonal inventory, prepare launches, and control exactly what your customers see with professional visibility management for WooCommerce!

Questions

Does hiding products delete them from my database?

No, absolutely not! The plugin never deletes any products or categories from your WordPress database. It simply uses meta fields and query filters to exclude hidden products from appearing on the frontend. All your product data, images, descriptions, and settings remain completely intact. You can unhide any product or category at any time by unchecking it or removing the chip, and it will immediately reappear on your storefront without any data loss.

Can customers still access hidden products via direct URL?

The current version focuses on hiding products from main query listings (shop page, category pages, tag pages, and search results). Hidden products may still be accessible if someone has a direct URL to the product page. This design allows you to share hidden product links with specific customers or partners if needed, while keeping them out of general catalog browsing. For complete access restriction, we recommend combining this plugin with a membership or role-based access plugin.

What's the difference between hiding via category vs hiding individual products?

Both methods work together seamlessly:

  • Category Hiding: Hides ALL products within the selected category automatically. Perfect for hiding entire product lines, seasonal collections, or departmental groups. More efficient when you need to hide many related products at once.
  • Individual Product Hiding: Hides specific products regardless of their category. Ideal for temporarily hiding single items, work-in-progress products, or products that need special treatment. More granular control for selective visibility.

You can use both methods simultaneously - for example, hide an entire "Winter Collection" category while also hiding specific summer items individually.

Will hidden products still be visible in the WordPress admin area?

Yes! All hidden products and categories remain fully visible in the WordPress admin dashboard and WooCommerce product management screens. This is intentional - you need to see and manage all your products even when they're hidden from customers. The visibility filtering only applies to the frontend storefront, ensuring you maintain complete control and can easily edit, update inventory, or restore visibility of any hidden products without searching for them.

How does the AJAX live search work for selecting products to hide?

The AJAX search provides a fast, modern way to find and hide specific products:

  • Start typing any part of a product name (minimum 3 characters)
  • The plugin searches your entire product catalog in real-time without page reloads
  • Up to 20 matching products appear as clickable suggestions below the search box
  • Click any product to add it as a visual "chip" or tag below
  • Each chip shows the product name with an X button for easy removal
  • When you save settings, all products shown as chips will be hidden from the frontend

This chip-based interface makes it easy to see exactly which products you've selected to hide, and you can remove any of them with one click before saving.

Reviews

{{ reviewsTotal }}{{ options.labels.singularReviewCountLabel }}
{{ reviewsTotal }}{{ options.labels.pluralReviewCountLabel }}
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}
Hide Product Categories & Products for WooCommerce FREE Buy Now