Created
June 11, 2022 23:44
-
-
Save daddiofaddio/b5773182ac9d84ddd77b5b48cbba4d7e to your computer and use it in GitHub Desktop.
Replace existing avatar class using str_replace (functions.php)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* REPLACE EXISTING AVATAR CLASS */ | |
add_filter('get_avatar','change_avatar_css'); | |
function change_avatar_css($class) { | |
$class = str_replace('class="avatar avatar-96', 'class="avatar-225 rounded-circle', $class); | |
return $class; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment