Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WP User Manager - Remove the user nickname from the Display name dropdown in the Account page
function my_wpum_get_account_fields( $fields ) {
if ( isset( $fields['user_displayname']['options']['display_nickname'] ) ) {
unset( $fields['user_displayname']['options']['display_nickname'] );
return $fields;
add_filter( 'wpum_get_account_fields', 'my_wpum_get_account_fields' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment