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

How to add location tab of Geo My WordPress plugin only for special role
3.5 (70%) 6 votes

Want to get unique wordpress tips?

We won't rent or sell or spam your email. We promise!

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz