[buddypress-trac] [BuddyPress Trac] #8568: The xProfile "Name" Field
buddypress-trac
noreply at wordpress.org
Mon Sep 27 12:00:22 UTC 2021
#8568: The xProfile "Name" Field
------------------------------+---------------------
Reporter: needle | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 10.0.0
Component: Extended Profile | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
------------------------------+---------------------
Comment (by needle):
@imath What's happening is that `xprofile_sync_wp_profile()` extracts
`$fullname`, `$firstname` and `$lastname` from the xProfile "Display Name"
Field, then overwrites "First Name" and "Last Name" during the
`bp_core_signup_user` action.
FWIW here's the data just before calling `bp_update_user_meta()` and
`wp_update_user()`:
{{{
[method] => xprofile_sync_wp_profile
[user_data] => stdClass Object
(
[ID] => 2
[user_login] => nobody
[user_pass] => ########
[user_nicename] => nobody
[user_email] => nobody at haystack.co.uk
[user_url] =>
[user_registered] => 2021-09-27 11:45:15
[user_activation_key] =>
[user_status] => 2
[display_name] => nobody
)
[display_name from xProfile] => Displayname
[first_name from user_meta] => Christian
[last_name from user_meta] => Surname
}}}
This explains why I'm seeing what I'm seeing - but not why it works for
you.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8568#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list