Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'mycred_add_finished', 'mycred_pro_trick_success_on_transfer', 999, 2 );
- function mycred_pro_trick_success_on_transfer( $result, $request ) {
- extract( $request );
- if ( $ref == 'rewards_given' && $type == 'mycred_default' && $amount < 0 )
- return true;
- return $result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement