| 开发者 | shabtech |
|---|---|
| 更新时间 | 2026年7月24日 06:56 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/product-category/wholesale/)wsvc_hidden_categories filter allows programmatic control (e.g. role-based visibility).tax_query without overriding other plugins' filters.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; } );
katalog-visibility-for-woocommerce folder to /wp-content/plugins/ via FTP and activate from the Plugins screen.Yes. Hiding only applies to the main Shop page. Category archive pages always display all their products normally.
Yes. Direct product URLs are never affected. Hidden products remain fully accessible via their permalink.
No. Filtering only applies to frontend WooCommerce product queries. Admin, REST API, cart, and checkout are never modified.
Yes. Enable the "Also hide from search results" toggle in the settings.
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.
Yes. The plugin declares full compatibility with High-Performance Order Storage.
Yes. The plugin safely merges its exclusion into the existing tax_query rather than replacing it, so other plugins' query modifications are preserved.
wsvc_hidden_categories developer filter.