Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
BuddyPress - Make Group Covers Clickable in Groups Directory Page
* BuddyPress - Make group covers clickable in groups directory page.
add_filter('youzify_group_profile_cover', 'custom_youzify_group_profile_cover', 999, 2);
function custom_youzify_group_profile_cover($group_cover, $group_id){
$group_link = bp_get_group_permalink($group_id);
if (!empty($group_link)) {
$group_cover = '<a href="' . $group_link . '">' . $group_cover . '</a>';
return $group_cover;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment