bp_core_get_member_display_name( string $display_name, int $user_id = null )
Get the display_name for member based on user_id
Description
Parameters
- $display_name
-
(Required)
- $user_id
-
(Optional)
Default value: null
Return
(string)
Source
File: bp-core/deprecated/buddyboss/1.2.2.php
function bp_core_get_member_display_name( $display_name, $user_id = null ) { // some cases it calls the filter directly, therefore no user id is passed if ( ! $user_id ) { return $display_name; } $old_display_name = $display_name; $display_name = bp_xprofile_get_member_display_name( $user_id ); if ( empty( $display_name ) ) { $display_name = $old_display_name; } return apply_filters( 'bp_core_get_member_display_name', trim( $display_name ), $user_id ); }
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.