I have unintentionally written another plugin. I was working on the user profile chapter for the new edition, and I was trying to find plugins that allowed people to edit user profile fields without writing any code. There are a number of them for adding whole new fields, but none that I could find for editing the contact fields: AIM, Yahoo, and Jabber. It’s super-simple to do with a few lines of code, but if it’s so simple, why not whip up an interface for it?
User Contact Control makes it easy as can be. Just enter the labels of the new fields you want. The plugin will sanitize those names into proper keys and display them at the bottom of the screen (once you’ve saved them) so you can retrieve and display them with get_user_meta()
or get_the_author_meta()
.
The three default contact methods are going away in 3.6, at which point you’ll need a plugin or a function to add your own if you want them.
Leave a Reply