Created
February 26, 2017 13:58
-
-
Save gabrielmerovingi/09944ab05e1930c7a8ef1a162aa0c6eb to your computer and use it in GitHub Desktop.
Re-order the leaderboard columns.
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
/** | |
* 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