xprofile_sync_bp_profile( object $errors, bool $update, object $user )
Syncs the standard built in WordPress profile data to XProfile.
Description Description
Parameters Parameters
- $errors
-
(Required) Array of errors. Passed by reference.
- $update
-
(Required) Whether or not being upated.
- $user
-
(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() ) { return; } xprofile_set_field_data( bp_xprofile_fullname_field_id(), $user->ID, $user->display_name ); }
Changelog Changelog
Version | Description |
---|---|
1.2.4 | Introduced. |