Created
October 25, 2019 14:08
-
-
Save wp-user-manager/86bba2f34c0f867da3c88f5228372d33 to your computer and use it in GitHub Desktop.
WP User Manager - Remove the user nickname from the Display name dropdown in the Account page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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