Existe una herramienta integrada para hacer esto. Navega a: Panel de WordPress > WooCommerce > Estado > Herramientas: Restablecer roles de WC Vendors.
Si la herramienta no logra restablecer los roles, existe una segunda opción:
Si tienes problemas de permisos y capacidades con tus vendedores debido a otros plugins que modifican estos permisos y necesitas restablecerlos, puedes agregar el siguiente código al archivo functions.php de tu tema y luego iniciar sesión nuevamente en tu sitio desde tu página de mi cuenta.
Esta función solo funcionará si utilizas la página de mi cuenta de WooCommerce. Ninguna otra página de inicio de sesión/widget ejecutará el código.
[ht_message mstyle=”alert” title=”” ” show_icon=”true” id=”” class=”” style=”” ]This will only work if you use the WooCommerce my-account page. No other login page / widget will run the code. [/ht_message]
[ht_message mstyle=”danger” title=”” ” show_icon=”” id=”” class=”” style=”” ]Remove this code from your themes functions.php after you have logged in. [/ht_message]