How to add location tab of Geo My WordPress plugin only for special role

If you use one of the best geo locator plugin for wordpress – Geo my WordPress (GMW) and you have different roles of users, sometimes it’s good to hide location tab for all roles, except special role. Also, maybe you want to show only special user role on map. Here simple code snippets for this

Add this code to functions.php of your theme. This code enables location only for user role “vendor” and hide for all others

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
John Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
John
Guest
John

Love you mate. Thanks for this!