xprofile_sync_bp_profile( object $errors, bool $update, object $user )

Syncs the standard built in WordPress profile data to XProfile.

Parameters Parameters


(object) (Required) Array of errors. Passed by reference.


(bool) (Required) Whether or not being upated.


(object) (Required) User object whose profile is being synced. Passed by reference.

Source Source

File: bp-xprofile/bp-xprofile-functions.php

function xprofile_sync_bp_profile( &$errors, $update, &$user ) {

	// Bail if profile syncing is disabled.
	if ( bp_disable_profile_sync() || ! $update || $errors->get_error_codes() ) {

	xprofile_set_field_data( bp_xprofile_fullname_field_id(), $user->ID, $user->display_name );

Top ↑

Changelog Changelog

Version Description
1.2.4 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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