Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielmerovingi/09944ab05e1930c7a8ef1a162aa0c6eb to your computer and use it in GitHub Desktop.
Save gabrielmerovingi/09944ab05e1930c7a8ef1a162aa0c6eb to your computer and use it in GitHub Desktop.
Re-order the leaderboard columns.
/**
* Reorder Leaderboard Columns
* @since 1.0
* @version 1.0
*/
function mycred_pro_bp_leaderboard_columns( $columns ) {
$new = array();
$new['balance'] = $columns['balance'];
$new['position'] = $columns['position'];
$new['member'] = $columns['member'];
return $new;
}
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