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

Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
John
John
1 year ago

Love you mate. Thanks for this!

1
0
Would love your thoughts, please comment.x
()
x