bp_admin_setting_callback_nickname_hide_last_name()
If ‘Nickname’ selected then add options to hide Last Name.
Description
Source
File: bp-core/admin/bp-core-admin-settings.php
1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 | function bp_admin_setting_callback_nickname_hide_last_name() { ?> <div class = "bb-nickname-hide-last-name" > <input id= "bp-hide-nickname-last-name" name= "bp-hide-nickname-last-name" type= "checkbox" value= "1" <?php checked( bp_hide_nickname_last_name( true ) ); ?> /> <label for = "bp-hide-nickname-last-name" ><?php _e( 'Last Name' , 'buddyboss' ); ?> <span class = "description" ><?php _e( '(can be disabled)' , 'buddyboss' ); ?></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 "First Name" and "Last Name" fields, they will not appear anywhere in the network. This allows your members to be fully anonymous (if they use a pseudonym for their nickname).' , 'buddyboss' ); ?></p></p> </div> <?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.