Hello @costino80,
Thank you for getting in touch with us. Unfortunately, SLA does not have the option to disable the text you see for Gravatar, as it is outside the scope for now. However, we do have a couple of solutions that you may find helpful.
- Firstly, you can use the “Disable User Gravatar” plugin.
- Alternatively, you can use the
user_profile_picture_description
filter hook to filter the profile page description. You can use the following snippet to hide the description:
add_filter( 'user_profile_picture_description', function ( $description = '', $profileuser = null ) {
if ( IS_PROFILE_PAGE ) {
$description = '';
}
return $description;
}
I hope that helps! Please let me know if you have any further questions or concerns.
Hello, thank you for your answer and the good idea.
Finally, I added a code that hides via css the Gravatar block.
Here is the code you can use :
add_action( 'admin_head', 'hide_user_profile_picture' );
function hide_user_profile_picture() {
global $pagenow;
if ( $pagenow === 'profile.php' ) {
echo '<style>
.user-profile-picture {
display: none;
}
</style>';
}
}