Created
February 26, 2017 13:56
-
-
Save gabrielmerovingi/87e8f467ea90826e6caa371c97b35faf to your computer and use it in GitHub Desktop.
Rename the position column to "Rank" in BP Group Leaderboards.
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
/** | |
* 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