Skip to:

Opened 5 years ago

Last modified 6 days ago

#7162 new feature request

xprofile field support for WordPress Profile Fields

Reported by: DJPaul Owned by:
Milestone: 8.0.0 Priority: strategic
Severity: normal Version:
Component: Extended Profile Keywords: needs-patch
Cc: lmoffereins@…, needle@…

Description (last modified by DJPaul)

WordPress has a number of unloved Profile Fields inside wp-admin user profiles, such as:

  • Website
  • Biographical Info
  • First / Last Name
  • Nickname

Let's add a special kind of xprofile field that displays this data, and saves updates back to where-ever WordPress is storing them. Let's make this work for fields added by third-party plugins or site customisations, too.

Change History (15)

#1 @Offereins
5 years ago

  • Cc lmoffereins@… added

Really interesting. Reminds me of the BP XProfile WP User Sync plugin.

#2 @needle
5 years ago

  • Cc needle@… added

#3 @DJPaul
4 years ago

  • Description modified (diff)

#4 @DJPaul
4 years ago

As always, easy ideas are never easy.

I experimented with an approach where we would not mirror data from usermeta (i.e. nothing in our xprofile_data table).
A problem I found is with bp_has_profile(). It's hide_empty_fields_default parameter will not return our "biography" field (for example) because we don't have a value stored for it, which means it doesn't get rendered into the template loop.

so... because adjusting the SQL would involve at least one JOIN (or a seperate query), this seems a bit sub-optimal, so it's probably going to have to be syncing WP usermeta. :o

so... we can probably overhaul xprofile_sync_wp_profile and xprofile_sync_bp_profile at the same time, which currently "syncs" nickname/first/last name back and forth. This hasn't been touched since v1.0.0 and it's always been a bit crappy, so it feels like time.

#5 @needle
4 years ago

@DJPaul Please look at my BP XProfile WP User Sync plugin. which currently works seamlessly with CiviCRM WordPress Profile Sync as well, so that First Name and Last Name propagate throughout the CiviCRM - WordPress - BuddyPress ecosystem. Please keep this thread up-to-date with your thinking and progress - there are quite a few sites that implement (most of) this already :)

#6 @DJPaul
4 years ago

Leaving this here as a note for myself, going to discuss in dev chat next week: #2225

This ticket was mentioned in Slack in #buddypress by djpaul. View the logs.

4 years ago

This ticket was mentioned in Slack in #buddypress by mercime. View the logs.

4 years ago

#10 @netweb
4 years ago

FYI: It was mentioned in the chat that bbPress does profile fields:

This ticket was mentioned in Slack in #buddypress by imath. View the logs.

8 weeks ago

#12 @imath
8 weeks ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Contributions to Under Consideration

#13 @imath
6 weeks ago

  • Milestone changed from Under Consideration to 8.0.0

This ticket was mentioned in Slack in #buddypress by vapvarun. View the logs.

6 days ago

#15 @vapvarun
6 days ago

I think including a feature to change nicename along with first name and last name at frontend profile edit section will be a good addition and will keep info sync with WP.

Note: See TracTickets for help on using tickets.