bp_core_display_name_format( bool $default = 'first_name' )

Default display name format.

Description

Parameters

$default

(Optional) Fallback value if not found in the database. Default: first_name.

Default value: 'first_name'

Return

(string) display name format.

Source

File: bp-core/bp-core-options.php

function bp_core_display_name_format( $default = 'first_name' ) {

	/**
	 * Filters default display name format.
	 *
	 * @since BuddyBoss 1.5.1
	 *
	 * @param string $value Default display name format.
	 */
	return apply_filters( 'bp_core_display_name_format', bp_get_option( 'bp-display-name-format', $default ) );
}

Changelog

Changelog
Version Description
BuddyBoss 1.5.1 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.