PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

How to give access to just one page with no options

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello, I wish to grant my employee access to Bear Bilk Editor ONLY in Woocommerce. And within Bear Bulk Editor, I don't want them to be able to change any settings, or the appearance of the page. They just need access to product tiles.

What is the easiest way to achieve this?

I have attached a screenshot. anything in red box, I would like to be gone/insibile to employee.  Anything in green box I want to be visible.

Hello

Please  watch  this  video - https://bulk-editor.com/video#video_2508

Read this( https://share.pluginus.net/image/i20221226095557.png ) - https://bulk-editor.com/document/more-settings-implicit

But to hide these fields you need code customization - https://share.pluginus.net/image/i20221226095830.png

Thank you.  The user role I am trying to hide these tabs for is a custom user I created, called 'employee'

I used the code below.

but I changed"administrator" to"employee" and it did indeed hide the tabs, but it hide it for ALL users, even administrator. I want to hide it only for user role: employee

Can you tell me what I did wrong please?

Hello

Please  read  this - https://developer.wordpress.org/reference/functions/current_user_can/

To  check  role

$user = wp_get_current_user();

if ( in_array( 'employee', (array) $user->roles ) AND in_array($slug, $rules) ) {

$show = false;

}

I'm sorry, im not really familiar with code and not developer level.

 

Would you be able to provide me the code snippet i need to use so that only User Role employee cannot see the tabs?

Unfortunately code customization is not included in support

You  can try  it:

add_filter('woobe_show_tabs', function ($show, $slug) {

$rules = array('settings', 'meta', 'info');

$user = wp_get_current_user();

if ( in_array( 'employee', (array) $user->roles ) AND in_array($slug, $rules) ) {

$show = false;

}

return $show;

}, 99, 2);