Yes, it’s possible. Here’s what I’d suggest:
1) In your theme or in a helper plugin, create a new widget that extends from DPA_Leaderboard_Widget
and register it with register_widget()
.
2) In your new widget, override the widget
method and change the call to dpa_get_template_part()
to load a new custom template. i.e. copy this file from the plugin into your theme, rename the file, and load that.
3) Once you’ve confirmed that your new widget loads your new custom template, edit that new template file. It’s a pretty simple template, and you’ll see a call to dpa_has_leaderboard()
. We need to edit this call, and pass a custom parameter.
If you look at the function markup, there’s a user_ids
parameter, which takes an array of integers. You need to pass an array of user IDs that you want to show up in the leaderboard.
The only part to do is figure out how to get the list of user IDs that you want, but I’ll leave that to you to figure out — there’s a few ways of doing it, kinda depends were exactly you want to use the widget.
Open a new support thread if it’s not obvious/or you can’t figure it out. ??