bp_xprofile_update_display_name( $user_id )

Update display_name in user database.

Description

Source

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

function bp_xprofile_update_display_name( $user_id ) {
	wp_update_user( array(
		'ID' => $user_id,
		'display_name' => bp_custom_display_name_format( get_user_by( 'ID', $user_id )->display_name, $user_id )
	) );
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.