Skip to:

Opened 21 months ago

Last modified 20 months ago

#7162 new feature request

xprofile field support for WordPress Profile Fields

Reported by: Paul Gibbs Owned by:
Milestone: Awaiting Contributions Priority: strategic
Severity: normal Version:
Component: Extended Profile Keywords:
Cc: lmoffereins@…, needle@…

Description (last modified by Paul Gibbs)

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 (10)

#1 @Offereins
21 months ago

  • Cc lmoffereins@… added

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

#2 @Christian Wach
21 months ago

  • Cc needle@… added

#3 @Paul Gibbs
20 months ago

  • Description modified (diff)

#4 @Paul Gibbs
20 months 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 @Christian Wach
20 months 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 @Paul Gibbs
20 months 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.

20 months ago

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

20 months ago

#10 @Stephen Edgar
20 months ago

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

Note: See TracTickets for help on using tickets.