Hey.
You can use the mycred_add filter to enforce a max.
Here is an example:
add_filter( 'mycred_add', 'mycred_pro_user_max', 999, 3 );
function mycred_pro_user_max( $reply, $request, $mycred ) {
// Ignore if allready declined
if ( $reply === false ) return $reply;
extract( $request );
// Ignore deductions
if ( $amount < $mycred->zero() ) return $reply;
// Get uses balance
$balance = $mycred->get_users_balance( $user_id, $type );
// Maximum
$max = 1000;
// Check if we already reched max
if ( $balance >= $max ) return false;
// Else check if adding this up will exceed max
if ( $balance + $amount >= 1000 ) return false;
// all else return default
return $reply;
}
Just add the code snippet to your themes functions.php file and change the max amount to a number that works for you and you are set.
You can “donate” by purchasing tokens if you do not find anything you want in the store. You can purchase token by clicking on the array in the blue menu on the top right corner of the screen and selecting “Buy Tokens” in the dropdown menu.