Created
December 2, 2016 13:30
-
-
Save wpflippercode/6c9aa8d02d52201fc63b87b6c7dffd85 to your computer and use it in GitHub Desktop.
Remove Profile Picture section on Edit Profile Page
This file contains hidden or 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
add_action('admin_head','fc_remove_profile_image'); | |
function fc_remove_profile_image(){ | |
echo '<script> | |
jQuery(document).ready(function(){ | |
jQuery("tr.user-profile-picture").remove(); | |
}); | |
</script>'; | |
} |
works great!
Just worked for me. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I added this code to the function code. Got an error and am now locked out of my site.
Error message: Parse error: syntax error, unexpected 'add_action' (T_STRING), expecting function (T_FUNCTION) in /var/www/html/wp-content/plugins/wp-user-avatar/wp-user-avatar.php on line 79
Any idea how to get back into my site? WordPress site.