Skip to content

Instantly share code, notes, and snippets.

@raftaar1191
Created August 17, 2018 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raftaar1191/8e25d93486ff62c2f1830a5d6fbeb935 to your computer and use it in GitHub Desktop.
Save raftaar1191/8e25d93486ff62c2f1830a5d6fbeb935 to your computer and use it in GitHub Desktop.
Force Donation to get imported even if it an duplicate donation
<?php
/**
* Check if donation is duplicated or not before importing.
*
* @return bool
*/
function give_check_import_donation_duplicate_callback( $value ) {
return false;
}
add_filter( 'give_check_import_donation_duplicate', 'give_check_import_donation_duplicate_callback' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment