• Hi – I’m using version 1.1.0 which appears to work properly. It hides specific categories by slug and all seems well. However, I noticed that when I have debugging on in wordpress and go to a product page, I get an error:

    Notice: Trying to get property ‘slug’ of non-object in /home/mysite/public_html/wp-content/plugins/hide-categories-on-shop-page/wc-hide-categories-on-shop-page.php on line 147

    I only get this error on a product page – not category/subcategory pages.

    Disabling debug mode hides the error, but I was hoping to resolve this. Any input would be appreciated. Thank you!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Trying to get property ‘slug’ of non-object’ is closed to new replies.