admin管理员组

文章数量:1300022

How do I hide certain metaboxes in WordPress Admin screen options for specific user roles?

For example, I allow the user role "Store Vendor" to access the WordPress admin to upload their products to my marketplace, but I do not want them to access some features.

Ideally there would be a filter to add in the functions.php but I can't figured it.

IDs that need to be removed from admin menu for Store Vendor:

uap_affiliate_landing_page

ihc_show_for

ihc_drip_content

wcfm-view

How do I hide certain metaboxes in WordPress Admin screen options for specific user roles?

For example, I allow the user role "Store Vendor" to access the WordPress admin to upload their products to my marketplace, but I do not want them to access some features.

Ideally there would be a filter to add in the functions.php but I can't figured it.

IDs that need to be removed from admin menu for Store Vendor:

uap_affiliate_landing_page

ihc_show_for

ihc_drip_content

wcfm-view

Share Improve this question edited Apr 7, 2021 at 10:23 Tom J Nowell 61k7 gold badges79 silver badges148 bronze badges asked Apr 7, 2021 at 5:35 Andrew124Andrew124 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default -1

Try maybe WPFront User Role Editor plugin, it is free but also has premium features. Hope this helps if not very sorry, i m not into codes much only as hobby.

本文标签: