We try to block the tabs of woocommerce like this method : https://www.role-editor.com/forums/topic/need-to-give-a-user-access-to-specific-page-on-woocommerce/ but we have the plugin Product Filter for WooCommerce from XforWooCommerce and it add on tab named “Product filters” with this link /wp-admin/admin.php?page=wc-settings&tab=product_filter.
We try to unset like this : unset( $pages[‘product_filter’]); but doesn’t work, do you have any idea to block this.
I need access to the “Product Filter” plugin in order to test this. Share its .zip via DropBox or similar with support [at-sign] role-editor.com
I use such products for the investigation purpose only and install at the local development environment.
The problem is the priority value. ‘Product filter’ plugin adds its tab via ‘woocommerce_settings_tabs_array’ filter with priority 50. So, in order to remove it you have to add the same filter with larger priority, at least 51. So try