Hide Admin Account From Vendor List In Dokan Backend
Last updated
Last updated
Dokan Multivendor plugin has a cool feature to show all the vendor list on the WordPress Backend -> Dokan -> Vendors area. Where the site admin can easily edit any vendor information, banner image, or profile image.
Now, the main problem is the vendor list is not only showing a vendor account. It is also showing all the administrator account too. So, if your website has 5 admins and 20 vendors then on the vendor list it is showing 25. Arggh! sometimes you might get confused that how come I have 25 vendors while the User list is showing 20 :/
You need a child theme’s functions.php or use PHP inserter plugin to use the below code
Replace XX with the admin's User ID
This solution is found here