Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Adjust buyCRED Cost
- * Adjusts the cost for buying points via the
- * buyCRED add-on.
- * @version 1.0
- */
- add_filter( 'mycred_buycred_get_cost', 'buyred_volume_pricing', 10, 2 );
- function buyred_volume_pricing( $cost, $amount ) {
- // If buying 25 points
- if ( $amount == 25 )
- return 25;
- // If buying 50 points
- if ( $amount == 50 )
- return 45;
- // If buying 100 points
- if ( $amount == 100 )
- return 85.00;
- // If buying 200 points
- if ( $amount == 200 )
- return 160.00;
- // This is a filter, always return something
- return $cost;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement