bp_admin_setting_display_name_first_name()
If ‘First Name’ selected then add option to hide Last Name.
Description
Source
File: bp-core/admin/bp-core-admin-settings.php
973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 | function bp_admin_setting_display_name_first_name() { ?> <input id= "bp-hide-first-name" type= "checkbox" disabled= "disabled" checked= "checked" /> <label for = "bp-hide-first-name" ><?php _e( 'First Name' , 'buddyboss' ); ?></label> <br /><br /> <input id= "bp-hide-last-name" name= "bp-hide-last-name" type= "checkbox" value= "1" <?php checked( bp_hide_last_name( true ) ); ?> /> <label for = "bp-hide-last-name" ><?php _e( 'Last Name' , 'buddyboss' ); ?> <span class = "description" ><?php _e( '(can be disabled)' , 'buddyboss' ); ?></span></label> <br /><br /> <input id= "bp-hide-nickname" type= "checkbox" disabled= "disabled" checked= "checked" /> <label for = "bp-hide-nickname" ><?php _e( 'Nickname' , 'buddyboss' ); ?></label> <br /><br /> <p class = "description" ><?php _e( 'If you disable "Last Name" field, it will not appear anywhere in the network.' , 'buddyboss' ); ?></p> <?php } |
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.