bp_hide_last_name( bool $default = true )
Allow members to hide last name field if in display format first name selected.
Description
Parameters
- $default
-
(Optional) Fallback value if not found in the database. Default: true.
Default value: true
Return
(bool) True if avatar uploads are disabled, otherwise false.
Source
File: bp-core/bp-core-options.php
function bp_hide_last_name( $default = true ) { /** * Filters whether or not members are able to hide last name field. * * @since BuddyBoss 1.1.1 * * @param bool $value Whether or not members are able to hide last name field. */ return (bool) apply_filters( 'bp_hide_last_name', (bool) bp_get_option( 'bp-hide-last-name', $default ) ); }
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.