bp_xprofile_adjust_current_user_display_name()

Change member display_name for current_user.

Description

Source

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

898
899
900
901
902
903
904
905
906
function bp_xprofile_adjust_current_user_display_name() {
    global $current_user;
 
    if ( ! $current_user->ID ) {
        return;
    }
 
    $current_user->data->display_name = bp_custom_display_name_format( $current_user->data->display_name, $current_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.