Created
February 26, 2017 14:40
-
-
Save gabrielmerovingi/f5b3b38549385705903deac9e30faade to your computer and use it in GitHub Desktop.
Render the content of a custom leaderboard column with the ID "avatar".
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
/** | |
* Avatar Leaderboard Column | |
* @since 1.0 | |
* @version 1.0 | |
*/ | |
function mycred_pro_bp_leaderboard_avatar_column( $content, $row, $group_id, $point_type ) { | |
return get_avatar( $row->user_id, 64 ); | |
} | |
add_filter( 'mycred_bp_leaderboard_avatar_column', 'mycred_pro_bp_leaderboard_avatar_column', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment