avatar bua

* This assumes that Gravatar (or one of it's services is phối as the mặc định WP avatar option).
* Adjust this code and insert your own URL to tát the mặc định avatar.
* Add this code to tát your site by following a guide lượt thích - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
function my_bua_default_avatar_image( $avatar, $id_or_email ) {
if ( strpos( $avatar, 'secure.gravatar.com' ) !== false ) {
$default_avatar = "https://URLTOIMAGE.COM/SOME-PATH/IMAGE.png"; // Change this to tát the URL for the mặc định AVATAR.
$avatar = "<img src='$default_avatar' srcset='$default_avatar' alt='default avatar' class='avatar avatar-64 photo' height='64' width='64' loading='lazy' decoding='async'/>";
return $avatar;
add_filter( 'basic_user_avatar', 'my_bua_default_avatar_image', 10, 2 );