How to remove Profile Picture section or the message “You can change your profile picture on Gravatar.”

To remove the profile picture row of the table (which includes the gravatar link):

jQuery( "tr.user-profile-picture" ).remove();

To remove that entire “about yourself” table:

jQuery( "tr.user-profile-picture" ).parents("table:first").remove();

Use this type of jQuery call, don’t try to get fancy with the loop.
This is on WP 4.4; earlier versions may have different HTML class names for those elements.

Leave a Comment