Home Forums WC Vendors Free Support Remove fields from Admin User Edit Reply To: Remove fields from Admin User Edit

#12317
hadrien
Participant

Hi !

I was in the same situation ! Wondering how to hide shop description in admin vendor dashboard without editing the plugin class. So i managed to do that by adding in function.php :

function custom_styles_vendor_admin() {
if ( current_user_can('vendor') ) :
?>
<style>
/* hide shop description */
body.toplevel_page_wcv-vendor-shopsettings .form-table tr:nth-child(4) {display:none;}
</style>
<?php
endif;
}
add_action( 'admin_head', 'custom_styles_vendor_admin' );

Cheers !

This website uses cookies to ensure you get the best experience on our website.