Add custom page in account menu for vendor

I have successfully added this code, but I want it to appear only when they sign in as vendor.


Please note that vendors have the role of contributor, you can wrap the addition of a menu item (inside the function itself) with a condition, for example: current_user_can(‘edit_posts’).

​I hope this is helpful to you.