Skip to content

Instantly share code, notes, and snippets.

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 Musilda/cbb1ebc8ff63613bdccc9921b0b26b0e to your computer and use it in GitHub Desktop.
Save Musilda/cbb1ebc8ff63613bdccc9921b0b26b0e to your computer and use it in GitHub Desktop.
<?php
add_filter('gopay_notify_virtual_product_status', 'toret_gopay_custom_paid_status', 10, 2 );
add_filter('gopay_notify_normal_product_status', 'toret_gopay_custom_paid_status', 10, 2 );
if ( !function_exists( 'toret_gopay_custom_paid_status' ) ) {
function toret_gopay_custom_paid_status( $status, $order ) {
return 'paid-order';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment