Hi, first of all, I love the concept of the plugin, it’s exactly what I need!
However, when I try to hide product categories on the shop page of a demo website that I’m devoloping, nothing is filtered, all categories are showing, even though I’ve assigned the three categores to three user roles. Can you give me some suggestion on why this might be please?
I can send you the login details by email if you need them for testing.
]]>Hi
This theme overwrites the theme background color – Block Theme: Twenty Twenty 4
Disabled theme color #f9f9f9
Overwritten color #f0f0f1
Through string locator I have identified 3 plugins running this color. By trial & error I have turned off and on and off and on. When this plugin is active, it enforces background f0f0f1 in theme Twenty Twenty Four
Please fix this, thx
]]>Hello, why are the other categories not working for my clients, I hide only 1 category for the clients, but there are 3/4 more categories that can be seen in the store, but doesn’t work properly while the plugin is active. When I cancel it, all the categories start working correctly.
]]>2024-08-12T02:39:51+00:00 Critical Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /www/**_235/public/wp-content/plugins/hide-category-by-user-role-for-woocommerce/public/public-ui-setup.php:143
Keeps showing up, please help.
### WordPress Environment ###
WordPress address (URL): https://***.org
Site address (URL): https://***.org
WC Version: 8.8.5
REST API Version: ? 8.8.5
Action Scheduler Version: ? 3.7.4
Log Directory Writable: ?
WP Version: ? 6.5.3 - There is a newer version of WordPress available (6.6.1)
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
WP Cron: ?
Language: en_US
External object cache: –
### Server Environment ###
Server Info: nginx/1.25.5
PHP Version: 8.3.6
PHP Post Max Size: 128 MB
PHP Time Limit: 300
PHP Max Input Vars: 10000
cURL Version: 7.68.0
OpenSSL/1.1.1f
SUHOSIN Installed: –
MySQL Version: 10.11.6-MariaDB-1:10.11.6+maria~ubu2004
Max Upload Size: 128 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ?
### Database ###
WC Database Version: 8.8.5
WC Database Prefix: wp_
Total Database Size: 49.04MB
Database Data Size: 32.17MB
Database Index Size: 16.87MB
wp_woocommerce_sessions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_order_items: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_order_itemmeta: Data: 0.30MB + Index: 0.25MB + Engine InnoDB
wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_actions: Data: 2.02MB + Index: 3.36MB + Engine InnoDB
wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_logs: Data: 1.02MB + Index: 2.03MB + Engine InnoDB
wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_comments: Data: 0.13MB + Index: 0.09MB + Engine InnoDB
wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
wp_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB
wp_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
wp_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_global_stock_level_pricing_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_jetpack_sync_queue: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_options: Data: 7.27MB + Index: 0.23MB + Engine InnoDB
wp_pmxe_exports: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
wp_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDB
wp_pmxe_posts: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
wp_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_postmeta: Data: 10.34MB + Index: 7.52MB + Engine InnoDB
wp_posts: Data: 8.31MB + Index: 0.69MB + Engine InnoDB
wp_stock_level_pricing_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_term_relationships: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_usermeta: Data: 0.45MB + Index: 0.16MB + Engine InnoDB
wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_mnm_child_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_product_attributes_lookup: Data: 0.19MB + Index: 0.13MB + Engine InnoDB
wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_product_meta_lookup: Data: 0.20MB + Index: 0.42MB + Engine InnoDB
wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_square_customers: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_yoast_indexable: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
### Post Type Counts ###
acf-field: 25
acf-field-group: 1
attachment: 653
custom_css: 2
customize_changeset: 28
cwginstocknotifier: 16
e-landing-page: 1
elementor_library: 5
feedback: 894
nav_menu_item: 17
page: 15
pdr_product_base: 16
pewc_field: 139
pewc_group: 37
pewc_product_extra: 77
post: 2
product: 49
product_variation: 1206
revision: 117
shop_coupon: 13
shop_order: 110
shop_order_refund: 4
wp_font_face: 10
wp_font_family: 1
wp_global_styles: 3
wp_navigation: 4
wp_template: 7
wp_template_part: 3
### Security ###
Secure connection (HTTPS): ?
Hide errors from visitors: ?
### Active Plugins (41) ###
ManageWP - Worker: by GoDaddy – 4.9.19
ACF Content Analysis for Yoast SEO: by Thomas Kr?ftner
ViktorFroberg
marol87
pekz0r
angrycreative
Team Yoast – 3.1
Advanced Access Manager: by AAM ?– 6.9.27
Advanced Custom Fields PRO: by WP Engine – 6.2.9
WooCommerce Product Add-Ons Ultimate Image Preview: by Plugin Republic – 1.0.5.1
WooCommerce Product Add-Ons Ultimate Text Preview: by Plugin Republic – 1.1.8
Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro: by codewoogeek – 5.3.2
?? Built Mighty Kit: by Built Mighty – 1.7.1
Built Mighty Square Sync: by Built Mighty – 1.0.0
Bulk Discounts for WooCommerce: by Plugify – 2.0.1 (update to version 2.0.3 is available)
Classic Editor: by WordPress Contributors – 1.6.3
Classic Widgets: by WordPress Contributors – 0.3
Elementor Pro: by Elementor.com – 3.21.3
Elementor: by Elementor.com – 3.21.8
Fluid Checkout Address Book: by Fluid Checkout – 2.0.1
Google Address Autocomplete for WooCommerce - By Fluid Checkout: by Fluid Checkout – 2.0.4
Fluid Checkout for WooCommerce - PRO: by Fluid Checkout – 2.1.7
Fluid Checkout for WooCommerce - Lite: by Fluid Checkout – 3.1.8
Hide Category by User Role for WooCommerce: by ThemeSupport – 2.0.2
Jetpack: by Automattic – 13.4.1
WooCommerce Product Add-Ons Ultimate: by Plugin Republic – 3.20.0
Product Visibility by User Role for WooCommerce: by WP Wham – 1.8.1
Safe SVG: by 10up – 2.2.4
Stock Level Pricing Premium: by Andrew – 1.0.2
User Menus: by Code Atlantic – 1.3.2
User Role Editor: by Vladimir Garagulya – 4.64.2
Video User Manuals: by Video User Manuals Pty Ltd – 2.5.13
WooCommerce Product Add-Ons Ultimate Advanced Uploads: by Plugin Republic – 1.2.4
Cart All In One For WooCommerce: by VillaTheme – 1.1.15
Woo Min/Max Quantities: by Woo – 4.1.4 (update to version 5.0.1 is available)
WooCommerce Mix and Match Products: by Kathy Darling – 2.6.1 (update to version 2.7.6 is available)
WooCommerce Shipping & Tax: by WooCommerce – 2.7.0
WooCommerce Stamps.com API integration: by WooCommerce – 1.9.8 (update to version 2.0.3 is available)
WooCommerce USPS Shipping: by WooCommerce – 4.8.2 (update to version 5.0.0 is available)
WooCommerce Square: by WooCommerce – 4.6.1 (update to version 4.7.2 is available)
Tax Exempt for WooCommerce: by Addify – 1.8.0 (update to version 1.8.1 is available)
WooCommerce: by Automattic – 8.8.5 (update to version 9.1.4 is available)
Yoast SEO: by Team Yoast – 22.6
WP Migrate: by WP Engine – 2.6.11
Perfect Images (Optimize, Rebuild, Replace, Thumbnails, Retina): by Jordy Meow – 6.5.5
Zakeke Interactive Product Designer: by Zakeke – 3.8.5
### Inactive Plugins (2) ###
Image Optimizer by Elementor – Compress, Resize and Optimize Images: by Elementor.com – 1.3.0
Stock Level Pricing: by Andrew – 1.0.3
### Must Use Plugins (3) ###
Elementor Safe Mode: by Elementor.com – 1.0.0
Kinsta Must-use Plugins: by Kinsta Team – 3.0.1
ManageWP - Worker Loader: by GoDaddy – 1.0.0
### Settings ###
API Enabled: –
Force SSL: –
Currency: USD ($)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
mix and match (mix-and-match)
simple (simple)
variable (variable)
Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)
Connected to WooCommerce.com: ?
Enforce Approved Product Download Directories: ?
HPOS feature screen enabled: –
HPOS feature enabled: –
Order datastore: WC_Order_Data_Store_CPT
HPOS data sync enabled: –
### Logging ###
Enabled: ?
Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
Retention period: 30 days
Level threshold: –
Log directory size: 7 MB
### WC Pages ###
Shop base: #6 - /shop/
Cart: #7 - /cart/
Checkout: #8 - /checkout/
My account: #9 - /my-account/
Terms and conditions: #44 - /terms-and-conditions/
### Theme ###
Name: HarrysButtons
Version: 0.1.0
Author URL: https://www.wondersphere.com/
Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
WooCommerce Support: ?
### Templates ###
Overrides: –
### Product Visibility by User Role Settings ###
Product Visibility by User Role: yes
Hide catalog visibility: yes
Make non-purchasable: yes
Modify query: yes
Hide menu items: no
Hide product categories/tags: no
Redirect:
Enable Redirect URLs per product: no
Replace description: no
Content to replace with, e.g.: Log in to see the product description.:
Replace short description: no
Content to replace with, e.g.: Log in to see the product description.:
User roles to display in settings: Array
(
)
Admin products list column: no
Product quick edit: no
Products bulk edit: no
Bulk settings for role guest: not set
Enable/Disable:
Hide all:
Products:
Invisible:
Product categories:
Invisible:
Product tags:
Invisible:
Bulk settings for role administrator: not set
Enable/Disable:
Hide all:
Products:
Invisible:
Product categories:
Invisible:
Product tags:
Invisible:
Bulk settings for role editor: not set
Enable/Disable:
Hide all:
Products:
Invisible:
Product categories:
Invisible:
Product tags:
Invisible:
Bulk settings for role author: not set
Enable/Disable:
Hide all:
Products:
Invisible:
Product categories:
Invisible:
Product tags:
Invisible:
Bulk settings for role contributor: not set
Enable/Disable:
Hide all:
Products:
Invisible:
Product categories:
Invisible:
Product tags:
Invisible:
Bulk settings for role subscriber: not set
Enable/Disable:
Hide all:
Products:
Invisible:
Product categories:
Invisible:
Product tags:
Invisible:
Bulk settings for role customer: not set
Enable/Disable:
Hide all:
Products:
Invisible:
Product categories:
Invisible:
Product tags:
Invisible:
Bulk settings for role shop_manager: not set
Enable/Disable:
Hide all:
Products:
Invisible:
Product categories:
Invisible:
Product tags:
Invisible:
Bulk settings for role wpseo_manager: not set
Enable/Disable:
Hide all:
Products:
Invisible:
Product categories:
Invisible:
Product tags:
Invisible:
Bulk settings for role wpseo_editor: not set
Enable/Disable:
Hide all:
Products:
Invisible:
Product categories:
Invisible:
Product tags:
Invisible:
Bulk settings for role employee: not set
Enable/Disable:
Hide all:
Products:
Invisible:
Product categories:
Invisible:
Product tags:
Invisible:
### Mix and Match Products ###
Version: 2.6.1
Database Version: 2.6.1
Template Overrides: –
### Square ###
Environment: Production
Tokenization Enabled: ?
Debug Mode: Off
### Cash App Pay (Square) ###
Environment: Production
Debug Mode: Off
### Admin ###
Enabled Features: activity-panels
analytics
product-block-editor
coupons
core-profiler
customize-store
customer-effort-score-tracks
import-products-task
experimental-fashion-sample-products
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
mobile-app-banner
navigation
onboarding
onboarding-tasks
product-variation-management
product-virtual-downloadable
product-external-affiliate
product-grouped
product-linked
product-pre-publish-modal
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
shipping-label-banner
subscriptions
store-alerts
transient-notices
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-page
Disabled Features: minified-js
new-product-management-experience
product-custom-fields
settings
async-product-editor-category-field
launch-your-store
Daily Cron: ? Next scheduled: 2024-08-12 13:51:35 -05:00
Options: ?
Notes: 51
Onboarding: completed
### Action Scheduler ###
Complete: 2,405
Oldest: 2024-08-06 21:56:49 -0500
Newest: 2024-08-11 21:50:55 -0500
Failed: 12
Oldest: 2023-03-21 08:54:37 -0500
Newest: 2024-07-10 06:40:13 -0500
Pending: 6
Oldest: 2024-08-11 21:54:51 -0500
Newest: 2024-08-14 17:15:53 -0500
### Status report information ###
Generated at: 2024-08-11 21:53:51 -05:00
]]>
Good morning,
Thank you very much for your plugin which works perfectly with WC roles and custom roles.
BUT, WooCommerce related products (woocommerce_related_products) still displays in public products from the hidden category for users who are not logged in.
I tried to remedy this with code in functions.php of the child theme or via css, the woocommerce related products still display products from the hidden category.
And I didn’t find this option (exclude a category for non-connected users) in your plugin.
Can you help me ?
In advance, thank you very much & best regards.
Sylvie
Hi.
If you go to this address https://petitsanimals.com/categoria-producto/alimentacion/ you will see that the category menu appears displayed in the sidebar, with a first level of subcategories. When updating to version 2.0.2 of the plugin, this no longer looks like this, but as you can see in this image https://ibb.co/THXWhm4
That is, only the category that is being viewed appears in the categories menu in the sidebar. Other categories and top-level subcategories are not displayed.
Thank you. ángel.
]]>My host says
there appears to be an issue with the plugin hide-category-by-user-role-for-woocommerce for which you must check with either your developer or seek help from plugin support.
2024/04/29 16:47:13 [error] 4084564#4084564: *1683763 FastCGI sent in stderr: “; PHP message: PHP Warning: Attempt to read property “slug” on int in /storage/v15225/teeblank/public_html/wp-content/plugins/hide-category-by-user-role-for-woocommerce/public/public-ui-setup.php on line 145; PHP message: PHP Warning: Attempt to read property “slug” on int in /storage/v15225/teeblank/public_html/wp-content/plugins/hide-category-by-user-role-for-woocommerce/public/public-ui-setup.php on line 145″ while reading upstream, client: 49.47.219.53, server: teeblank.in10.cdn-alpha.com, request: “GET /product/tribal-pattern-design-11/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.2-v15225.sock:”, host: “teeblank.com”, referrer: “https://teeblank.com/product-category/all-over-prints/tribal-pattern/”
Hey
I am using this plugin for hiding cats as supposed. On my site I have more vendors adding products, but I have categories I wish to restrict for administrators. What I mean is ONLY admin can tag products into these categories and not editors, contributors, store vendors etc.
I do not want to hide the frontend category or the products within, just restrict addition in this category for admin. How can I do that?
]]>I’ve installed the plugin and have activated it but i can’t see it anywhere in the menu list. Where is it?
]]>Hi,
Love the the design of this plugin.
Am I correct to notice that, compared to the admin “product categories” page, the categories are not always sorted and that some subcategories are not even under their main category?
Would it be possible to sort them hierarchical?
Thanks.
DV
if more than one user role is associated with a user then this hide categories then it doesn’t work.. then no category is hiding. why?
]]>Good morning,
I have an issue with your pretty good plugin in general. When i use the redirect custom url page feature of the plugin it works for what it is for… but then when ever there is no product or anything in search results to show then woocommerce bypasses the default NO RESULT PAGE and serves the page i put in your custom url feature of your plugin… !!! Should it be a bug or what?
In addition if i choose to put a message… it shows it under my header section if i don’t put anything in for the wrapper field of your plugin… actually what should i put to show the message in content page? This should be set by default, I think!
Thank you in advance for your answers
]]>After installing the plugin, blog entries were automatically hidden without selecting what we want to hide. Our goal is to hide the categories in the store. In the list of categories in the plugin, there is not even an option to select post categories to hide. Please help ??
]]>Giving me errors on my products all of a sudden.
]]>while activating the plugin I’m getting the error that states this plugin not having the valid headers.
]]>Very good! This plugin does well too if it supports Dokan. Imagine having products on WooCommerce that would only be destined from sellers to sellers – like an internal b2b.
]]>