xprofile_sync_wp_profile_on_single_field_set( BP_XProfile_ProfileData $data )
Update the WP display, last, and first name fields when the xprofile display name field is updated.
Description Description
Parameters Parameters
- $data
-
(Required) Current instance of the profile data being saved.
Source Source
File: bp-xprofile/bp-xprofile-functions.php
function xprofile_sync_wp_profile_on_single_field_set( $data ) { if ( bp_xprofile_fullname_field_id() !== $data->field_id ) { return; } xprofile_sync_wp_profile( $data->user_id ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |