Adding social metadata to user profiles

Hello!

The "edit user profile" page of my WP site has few fields like Facebook, Twitter, Jabber, AIM, etc. I think these were added by a theme we used previously. We have deleted the theme since but these fields are still there.

I would like to use these fields and incorporate them in my theme's php files to set up Facebook follow, Twitter follow and an "email user" link in every user's bio.

While I'm aware about editing the theme files and where the code should go to produce the desired the result, what I need some help with is this:

*Is it possible for a deleted theme's meta fields to remain intact despite the deletion?
*Where is the information of these fields stored in the database, how to add more fields like this in the edit profile page and how can I retrieve and use the info stored in these themes in my theme files?
*Lastly, the email of the user is already in the database and I know how to output it in the bio. But in some cases, the user may not like the idea of having a "email user" link in his/her bio. Is it possible to integrate a checkbox on the "edit user profile" page where the user can control if the link shows up or not?

Comments 2

It's unlikely the fields would remain active after removing the theme, unless they were from some custom code that you also added to your new theme. Do you have JetPack installed? Could be from one of the modules there.

Easiest way to find out where it's from is by deactivating all your plugins and see if they are still there - if not then you know it's a plugin and can begin activating them until it comes back.

Where that information is stored will really depend on where it's coming from - but if you enter a unique value into the field then search for that value in your database that should reveal which table and row it is being stored in :slight_smile:

*Lastly, the email of the user is already in the database and I know how to output it in the bio. But in some cases, the user may not like the idea of having a "email user" link in his/her bio. Is it possible to integrate a checkbox on the "edit user profile" page where the user can control if the link shows up or not?

BuddyPress allows you to make certain fields public or private with it's extended profile component.

If you have another profile option that doesn't already have that feature, then you will likely need to hire a developer to have it custom developed for it :slight_smile: we do have a jobs board for posting such jobs: https://premium.wpmudev.org/wordpress-development/

There you can find another talented member of the community to help you out.

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: