Linux 软件免费装
Banner图

Katalog Visibility for WooCommerce

开发者 shabtech
更新时间 2026年7月24日 06:56
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce product categories hide categories shop page product visibility

下载

1.0.0

详情介绍:

Katalog Visibility for WooCommerce gives store owners granular control over which product categories appear on the main Shop page — without affecting visibility anywhere else on the site. Products in hidden categories remain fully accessible through: Use Cases Features Developer Filter Example Show hidden categories to wholesale users: add_filter( 'wsvc_hidden_categories', function ( $hidden ) { if ( current_user_can( 'wholesale_customer' ) ) { $wholesale = get_term_by( 'slug', 'wholesale', 'product_cat' ); if ( $wholesale ) { $hidden = array_diff( $hidden, array( $wholesale->term_id ) ); } } return $hidden; } );

安装:

  1. Download the plugin zip file.
  2. In your WordPress admin, go to Plugins → Add New → Upload Plugin.
  3. Upload the zip file and click Install Now.
  4. Activate the plugin.
  5. Navigate to WooCommerce → Settings → Products → Katalog Visibility.
  6. Select the categories you want to hide from the Shop page and save.
Alternatively, upload the extracted katalog-visibility-for-woocommerce folder to /wp-content/plugins/ via FTP and activate from the Plugins screen.

屏幕截图:

  • Per-product override checkbox in the product editor General tab.

升级注意事项:

1.0.0 Initial release.

常见问题:

Will hidden products still appear on their category pages?

Yes. Hiding only applies to the main Shop page. Category archive pages always display all their products normally.

Can I still link directly to a hidden product?

Yes. Direct product URLs are never affected. Hidden products remain fully accessible via their permalink.

Does this affect the admin dashboard or WooCommerce REST API?

No. Filtering only applies to frontend WooCommerce product queries. Admin, REST API, cart, and checkout are never modified.

Can I hide products from search results too?

Yes. Enable the "Also hide from search results" toggle in the settings.

Can I override hiding for a specific product?

Yes. Edit the product and check the "Shop Visibility Override" checkbox under the General tab. That product will appear on the Shop page even if its category is hidden.

Is this compatible with WooCommerce HPOS?

Yes. The plugin declares full compatibility with High-Performance Order Storage.

Does this work with other plugins that modify product queries?

Yes. The plugin safely merges its exclusion into the existing tax_query rather than replacing it, so other plugins' query modifications are preserved.

更新日志:

1.0.0