WordPress plugin intelligence profile

Hide Categories On Shop Page

Simple solution to hide specific categories in you woocommerce shop main page i.e. domain.com/shop This plugin was based on WC Hide Categories On Shop …

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.1
Current version1.1.3
WordPress coverageTested up to WordPress 6.1
Minimum stackWP 3.0.1 · PHP 7.0
Directory statusactive
Last directory update28 Nov 20223y ago
Active installations1K+Adoption metric — not a quality score
WordPress.org rating4.4 / 5 from 14 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Hide Categories On Shop Page version 1.1.3 as active, updated 3y ago and tested up to WordPress 6.1.

Overview

About this plugin

This free WooCommerce extension permits you to hide categories on your shops main page.

For this you have to save the categories with ‘,’ seperated in woocommerce > settings > products tab section.

In order for this to work you have to have Categories displayed. This can be set via Customizer. Appearance > Customize > WooCommerce > Product Catalog.

” Select Show categories as seen in the Screenshot below.

Additional Information

php file

Find line # 127 and remove //

//$mwd_opt4 = in_array( 'product_cat', $taxonomies ) &&! is_admin() && is_page('YOUR_PAGE_SLUG'),

Then find line #129 /*|| $mwd_opt4*/

Change to

|| $mwd_opt4

To remove products from those categories find line 160

// Uncomment the function below if you also want those products hidden /* add_action( 'woocommerce_product_query', 'mwd_hwcosp_remove_product_in_cat' );

function mwd_hwcosp_remove_product_in_cat( $q ) { //hwcosp_global is the databse row entry $opt_terms = get_option('hwcosp_global');

// Processes our users data to the way we want it from above $data = mwd_hwcosp_comma_separated_to_array($opt_terms);

$tax_query = (array) $q->get('tax_query'); $tax_query[] = array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => $data, // Set Category Slug which products not show on the shop and Archieve page. 'operator' => 'NOT IN' ); $q->set( 'tax_query', $tax_query ); } */

The code is well documented so its easy to find what part you are looking for

If you have any question please ask in the support forum, Thanks

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • e commerce
  • woocommerce
  • wordpress
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.1

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.1.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.1
Minimum requirementsWordPress 3.0.1 · PHP 7.0
Update activity28 Nov 20223y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.