Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wp-user-manager/738661434d3a0427262eb087f9bd18e3 to your computer and use it in GitHub Desktop.
Save wp-user-manager/738661434d3a0427262eb087f9bd18e3 to your computer and use it in GitHub Desktop.
WP User Manager - Allow the nickname field to be added to registration forms
<?php
add_filter( 'wpum_non_allowed_fields', function ( $fields ) {
if ( ( $key = array_search( 'user_nickname', $fields ) ) !== false ) {
unset( $fields[ $key ] );
}
return $fields;
} );
@wp-user-manager
Copy link
Author

Save this file to your /wp-content/mu-plugins/ directory (you might need to create the mu-plugins directory).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment