Here is the plugin I installed in case someone else needs it.
<?php
/**
* Plugin Name: Remove_username
* Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
* Description: Removes ability for user to change public display name.
* Version: The Plugin’s Version Number, e.g.: 1.0
* Author: Shawn Hooper
* Author URI: http://URI_Of_The_Plugin_Author
* License: GPL2
*/
add_action(‘show_user_profile’, ‘remove_display_name’);
add_action(‘edit_user_profile’, ‘remove_display_name’);
function remove_display_name($user) { ?>
<script>
jQuery(document).ready(function() {
jQuery(‘#display_name’).parent().parent().hide();
});
</script>
<?php }
awesome! thanks for the help! It worked!
Hey Shawn,
Thanks for the reply, So to create a plugin file I would just save that code as a php file, upload it to the plugins directory then activate it?
or…if I was to just add it to the functions file…where would I add that?