Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#11367 closed enhancement (worksforme)

Add Twitter & Facebook Options to User Contact Info

Reported by: dremeda Owned by: ericmann
Milestone: Priority: normal
Severity: trivial Version: 2.9
Component: Administration Keywords: user contact admin social has_patch tested
Focuses: Cc:


Currently we have E-mail; Website; AIM; Yahoo IM; and Jabber / Google Talk In the User Contact Info as fields.

Although these are great, I feel this area is incomplete. E-mail & Website make sense, but aren't we lacking in this area.

I think it would be helpful to add fields for communication mechanisms such as Twitter and Facebook to the options. If not, maybe a more intuitive way to add your communication methods of choice from your profile page.

This is a fairly straight forward enhancement and would make it easier for theme designers to build dynamic author and/or contributor pages.

Attachments (1)

11367.diff (564 bytes) - added by ericmann 6 years ago.
Adds Skype, Facebook, and Twitter to the Contact Info section of the profile page.

Download all attachments as: .zip

Change History (10)

#1 @nacin
6 years ago

Hmm, looks pretty easy to do in 2.9 with the user_contactmethods filter. #10240,[11852].

6 years ago

Adds Skype, Facebook, and Twitter to the Contact Info section of the profile page.

#2 @ericmann
6 years ago

  • Cc eric@… added
  • Keywords has_patch tested added
  • Owner set to ericmann
  • Status changed from new to accepted

Basic testing to make sure fields appear as an option and save correctly to the wp_usermeta table.

#3 follow-up: @nacin
6 years ago

Hmm, see also #11541 -- removing all contact fields from core.

#4 in reply to: ↑ 3 @ericmann
6 years ago

Replying to nacin:

Hmm, see also #11541 -- removing all contact fields from core.

I'm all for removing the network-specific contact fields from core (I agree with most of the arguments supporting that), but if we decide to leave them in we should move to include at least some of the more popular ones (i.e. Twitter).

#5 @dremeda
6 years ago

I think we need to consider these could and probably will change over time. Although it makes sense to include things like Twitter and Facebook now, it may not in the future.

Is there a better approach to allow customizable inclusions based on the authors needs?

#6 @dremeda
6 years ago

I would also add that LinkedIn may be a viable option as well.

#7 @dremeda
6 years ago

I would like to see this make 3.0 if possible. What can be done to accommodate that?

#8 @nacin
6 years ago

  • Milestone Future Release deleted
  • Resolution set to worksforme
  • Status changed from accepted to closed

If anything, they'll all be stripped from core. See #11541. There's a filter there, which means a plugin can easily control all of this. You can add Facebook, LinkedIn, and Twitter now, no need to wait for 3.0.

#9 @nacin
6 years ago

add_filter( 'user_contactmethods', 'my_usercontactmethods' );
function my_user_contactmethods( $c ) {
  $my = array( 'Twitter', 'Facebook', 'LinkedIn' );
  return array_merge( $c, $my );
Note: See TracTickets for help on using tickets.