Phone numbers not being encoded and how to remove “mailto” link?
-
Hello
I am testing this plugin with Buddypress which I am using to create a members directory, I want to hide the member’s phone numbers and email addresses so that they are not publicly visible to logged out visitors.
What I need help with/would like to know:
- The email addresses are being masked over correctly with whatever text I put in its place. In my case it is “sign up to see”, but:
- I want to make my website so that only certain members of specific user roles can actually have access to the members contact details, so I would like to remove the mailto link, otherwise even though the email address is not visible, clicking on it still takes people to an email service provider which defeats the purpose of masking it. Can I remove the mailto link completely and is there a way to allow only certain user roles can visually see it when logged in? I am aware that there is a shortcode for masking phone numbers, but because I am using it on Buddypress members’ profile pages, these are not individual WordPress pages that I can edit and place shortcodes in.
- The phone numbers are not being masked at all and I would like the same thing as in number 2 above, which is to remove the link for the phone number and simply mask it, until a user of a certain role logs in.
- The topic ‘Phone numbers not being encoded and how to remove “mailto” link?’ is closed to new replies.