1. Customize
  2. Customizations
  3. Disable author link on earners list

Disable author 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 disable this link for achievements and ranks earners list:

function my_prefix_disable_author_link_on_earners_list( $output, $user_id, $achievement_id, $args ) {

    return '
  • ' . get_avatar( $user_id ) . '
  • '; } // Disable link on achievement earners list add_filter( 'gamipress_get_achievement_earners_list_user', 'my_prefix_disable_author_link_on_earners_list', 10, 4 ); // Disable link on rank earners list add_filter( 'gamipress_get_rank_earners_list_user', 'my_prefix_disable_author_link_on_earners_list', 10, 4 );

    How can we help?