Last active
February 26, 2017 14:00
-
-
Save gabrielmerovingi/8c5334b2c5376c0c837ce0ec408a229e to your computer and use it in GitHub Desktop.
Add a custom column called "Avatar" for 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
/** | |
* Add Custom Leaderboard Column | |
* @since 1.0 | |
* @version 1.0 | |
*/ | |
function mycred_pro_bp_leaderboard_columns( $columns ) { | |
$columns['avatar'] = 'Avatar'; | |
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