We can use the show_avatars
option to remove the Profile Picture section.
-
We can visit
/wp-admin/options.php
to turn it off manually. -
Or update it with:
update_option( 'show_avatars', 0 );
-
Or modify it through a filter:
add_filter( 'option_show_avatars', '__return_false' );
-
We could also restrict it to the
profile.php
page:add_action( 'load-profile.php', function() { add_filter( 'option_show_avatars', '__return_false' ); } );