bp_hide_nickname_last_name( bool $default = true )

Allow members to hide last name field if in display format nick name selected.

Description

Parameters

$default

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

Default value: true

Return

(bool) True if Whether or not members are able to hide last name field if in display format nick name selected.

Source

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

function bp_hide_nickname_last_name( $default = true ) {

	/**
	 * Filters whether or not members are able to hide last name field if in display format nick name selected.
	 *
	 * @since BuddyBoss 1.1.1
	 *
	 * @param bool $value Whether or not members are able to hide last name field if in display format nick name selected.
	 */
	return (bool) apply_filters( 'bp_hide_nickname_last_name', (bool) bp_get_option( 'bp-hide-nickname-last-name', $default ) );
}

Changelog

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