Created
August 25, 2021 19:59
-
-
Save KaineLabs/68621e58023b2f58a901c2be4868eb06 to your computer and use it in GitHub Desktop.
Youzify - Social Share Change Profile Cover with Avatar
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
<?php | |
/** | |
* Youzify - Social Share Change Profile Cover with Avatar. | |
* */ | |
add_filter( 'youzify_og_profile_cover_image', 'yzc_change_og_profile_cover_image' ); | |
function yzc_change_og_profile_cover_image() { | |
return bp_core_fetch_avatar( | |
array( | |
'item_id' => bp_displayed_user_id(), | |
'type' => 'full', | |
'html' => false | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment