Skip to content

Instantly share code, notes, and snippets.

@wpflippercode
Created December 2, 2016 13:30
Show Gist options
  • Save wpflippercode/6c9aa8d02d52201fc63b87b6c7dffd85 to your computer and use it in GitHub Desktop.
Save wpflippercode/6c9aa8d02d52201fc63b87b6c7dffd85 to your computer and use it in GitHub Desktop.
Remove Profile Picture section on Edit Profile Page
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>';
}
@TeacherLee
Copy link

TeacherLee commented Jan 2, 2017

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.

@firstprimecrypto
Copy link

works great!

@jayjayel
Copy link

jayjayel commented Sep 9, 2020

Just worked for me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment