1. Customize
  2. Customizations
  3. BuddyPress profile link on earners list

BuddyPress profile link on earners list

By default, GamiPress adds a link to the author page (a WordPress built-in feature) on the achievement and rank earners list.

The following code snippet shows you how you can edit this link for achievements and ranks earners list:

function my_prefix_disable_buddypress_link_on_earners_list( $output, $user_id, $post_id, $args ) {

    return '<li><a href="' . bp_core_get_user_domain( $user_id ) . '">' . get_avatar( $user_id ) . '</a></li>';

}
// Customize link on achievement earners list
add_filter( 'gamipress_get_achievement_earners_list_user', 'my_prefix_disable_buddypress_link_on_earners_list', 10, 4 );
// Customize link on rank earners list
add_filter( 'gamipress_get_rank_earners_list_user', 'my_prefix_disable_buddypress_link_on_earners_list', 10, 4 );

How can we help?