How to disable users changing their display_name?
You can use jQuery to disable the display name select. function disable_display_name() { global $pagenow; if ( $pagenow == ‘profile.php’ ) { ?> <script> jQuery( document ).ready(function() { jQuery(‘#display_name’).prop(‘disabled’, ‘disabled’); }); </script> <?php } } add_action( ‘admin_head’, ‘disable_display_name’, 15 );