The columns you see in the leaderboard table is controlled by the mycred_bp_leaderboard_columns filter. So we can use this filter to remove, rename or add columns.
Example 1: Add a custom column called “Avatar“ to the leaderboards.
Next we need to render our columns content, or alternatively if you prefer, change the content the built-in columns generate. To render a custom columns content, we need to use the mycred_bp_leaderboard_{$column_id}_column filter.
Example 1: Render the content of our custom column
Example 2: Insert a users avatar into the members column in leaderboards instead of adding a new column.