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 Comment
  1. Love you mate. Thanks for this!

Leave a reply

Wordpress optimization, monetizing tips and tricks