Skip to content

Instantly share code, notes, and snippets.

@pauloiankoski
Created July 7, 2016 17:52
Show Gist options
  • Save pauloiankoski/ec1ee5261490c3af0dce08855991fc8a to your computer and use it in GitHub Desktop.
Save pauloiankoski/ec1ee5261490c3af0dce08855991fc8a to your computer and use it in GitHub Desktop.
Fix disable Cancel Score and Hold Score on Anti Fraud plugin.
if ( $score_points < $cancel_score && $cancel_score < 100 ) {
$new_status = 'wc-cancelled';
} elseif ( $score_points < $hold_score && $hold_score < 100 ) {
$new_status = 'wc-on-hold';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment