abossola
Forum Replies Created
-
Forum: Plugins
In reply to: [User Role Editor] Access to orders but not to settingsBelow is a custom code snippet you can add to your theme’s
functions.php
file or as part of a custom plugin. This code will block all WooCommerce tab settings for a specific user role.Replace
'your_user_role'
with the actual user role you want to block from accessing the WooCommerce tab settings.function block_woocommerce_tabs_for_role() { // Define the user role you want to block $blocked_role = 'your_user_role'; // Check if the current user has the blocked role if (current_user_can($blocked_role)) { // Remove the WooCommerce settings tabs add_filter('woocommerce_settings_tabs_array', 'remove_woocommerce_tabs', 200); } } function remove_woocommerce_tabs($tabs) { // Unset all WooCommerce tabs foreach ($tabs as $key => $tab) { unset($tabs[$key]); } return $tabs; } add_action('admin_init', 'block_woocommerce_tabs_for_role');
How the Code Works:block_woocommerce_tabs_for_role
function: Checks if the current user has the specified role. If they do, it adds a filter that removes all WooCommerce settings tabs.remove_woocommerce_tabs
function: Unsets all the WooCommerce settings tabs so that none are visible to the blocked user role.admin_init
action hook: Ensures the function runs when the admin panel is initialized.
Customization:
- Replace
'your_user_role'
with the desired user role (e.g.,shop_manager
,subscriber
). - If you want to block specific tabs instead of all, you can modify the
remove_woocommerce_tabs
function to unset only certain tabs by checking the key.
This code will effectively block access to the WooCommerce settings tabs for the specified user role.
there is a lot of info in stripe logs. What info do you need specifically?
Forum: Plugins
In reply to: [Route ? Shipping Protection] Route no longer appearing in shipstationWe are seeing the same issue still, even with the latest version of the plugin installed.
Forum: Plugins
In reply to: [Gravity Forms Klaviyo Add-On] First Name and Last Name are both required?This fork of the plugin makes first name and last name optional: https://github.com/dixonl90/Gravity-Forms-Klaviyo
Unfortunately, bc its the same name the update shows available and it overwrites that change.
Forum: Plugins
In reply to: [Cart66 Cloud :: WordPress Ecommerce The Easy Way] Is this still supported?WP EasyCart has acquired Cart66, for new users looking for WordPress eCommerce, please visit https://www.wpeasycart.com/
Forum: Plugins
In reply to: [Woo Manage Fraud Orders] Plugin setting page taxing memoryThat worked, thanks. looking forward to a permanent fix. Cheers
Forum: Plugins
In reply to: [Woo Manage Fraud Orders] Plugin setting page taxing memoryThanks for the reply. We’ll take a look at the hot fix ASAP. And will keep an eye out for the permanent fix. This plugin is VERY useful and works very well aside from this little hiccup. Thanks for all the work.
Forum: Plugins
In reply to: [G-Forms hCaptcha] This field is requiredThis still seems to be an issue for me.
Forum: Plugins
In reply to: [Woo Manage Fraud Orders] Plugin setting page taxing memoryWe are a large ecom site with many users. I would’t say “too many” being that they are paying customers. It worked fine prior to a previous update though and we have always had a lot of users. So if we are a large site with a lot of users this plugin won’t work?
Forum: Plugins
In reply to: [Klaviyo] Sign up form not working on checkout pageI just submitted a reply to the ticket in Klaviyo support on this…
Forum: Plugins
In reply to: [Klaviyo] Sign up form not working on checkout pageStill no ticket created / email to me at least. Chat said they would make it happen.
Forum: Plugins
In reply to: [Klaviyo] Sign up form not working on checkout pagefunny. I did and they said they would reach out to your team. I guess I need to reach back to them and say you said to reach out to them now?
Forum: Plugins
In reply to: [Yoast Duplicate Post] Duplicate post is not working anymoreI experienced the same issue after the latest update to 5.6. Looks like the update removed the “roles allowed to copy” permissions and I had to reselect admin as seen here https://d.pr/i/QfpUgr
Forum: Plugins
In reply to: [Order Export & Order Import for WooCommerce] Cant import couponsThe message is on the import screen here https://d.pr/i/DhwkJk
No errors in the logs https://d.pr/i/RZZ1fd
Forum: Plugins
In reply to: [Klaviyo] key not saving under settingsexcellent! resolved…