Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielmerovingi/87e8f467ea90826e6caa371c97b35faf to your computer and use it in GitHub Desktop.
Save gabrielmerovingi/87e8f467ea90826e6caa371c97b35faf to your computer and use it in GitHub Desktop.
Rename the position column to "Rank" in BP Group Leaderboards.
/**
* Rename Leaderboard Columns
* @since 1.0
* @version 1.0
*/
function mycred_pro_bp_leaderboard_columns( $columns ) {
$columns['position'] = 'Rank';
return $columns;
}
add_filter( 'mycred_bp_leaderboard_columns', 'mycred_pro_bp_leaderboard_columns' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment