How to move the role dropdown to the top of the form
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 | |
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