Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@TeacherLee 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

This comment has been minimized.

Copy link

@firstprimecrypto firstprimecrypto commented Mar 4, 2020

works great!

@jayjayel

This comment has been minimized.

Copy link

@jayjayel 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