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.

Parameters Parameters


(BP_XProfile_ProfileData) (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 ) {

	xprofile_sync_wp_profile( $data->user_id );

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.