This filter allows you to adjust how each row is rendered in the leaderboard. The word “ranking” refers to a users ranking in the leaderboard and has nothing to do with the users Rank.

Available since version 1.0


Param Type Required Description
$layout string Yes

The row string.

$template string No

The original row template.

$user obj No

The WordPress user object.

$position int No

The users position in the leaderboard.

Used By

Package Prio. Description
mycred/log 10 Used by the mycred_leaderboard shortcode.


Example 1: Add avatars to each user shown in your leaderboard.