bp_hide_nickname_first_name( bool $default = true )

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

Description

Parameters

$default

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

Default value: true

Source

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

function bp_hide_nickname_first_name( $default = true ) {

	/**
	 * Filters whether or not members are able to hide first 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 first name field if in display format nick name selected.
	 */
	return (bool) apply_filters( 'bp_hide_nickname_first_name', (bool) bp_get_option( 'bp-hide-nickname-first-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.