Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function remove_product_cat_metaboxes() {
- $user_id = get_current_user_id();
- if(is_user_wcmp_vendor($user_id)){
- remove_meta_box( 'product_catdiv','product','normal' ); // Categories Metabox
- }
- }
- add_action('admin_menu','remove_product_cat_metaboxes');
Add Comment
Please, Sign In to add comment