Skip to content

Instantly share code, notes, and snippets.

@wp-user-manager
Created December 19, 2019 22:35
Show Gist options
  • Save wp-user-manager/750edafae72fd5a0b7022b58a6df3cfd to your computer and use it in GitHub Desktop.
Save wp-user-manager/750edafae72fd5a0b7022b58a6df3cfd to your computer and use it in GitHub Desktop.
How to move the role dropdown to the top of the form
<?php
add_filter( 'wpum_get_registration_fields', 'my_wpum_get_registration_fields' );
function my_wpum_get_registration_fields( $fields ) {
if ( isset( $fields['role'] ) ) {
$fields['role']['priority'] = - 1;
}
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment