Created
September 14, 2016 08:14
-
-
Save davdebcom/1f9db54d8c6c2cec1b34b243850cd50c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function paytium_redirect_after_payment( $payment ) { | |
if ($payment->status == 'paid' ) { | |
echo '<script> location.replace("/category/geen-categorie/"); </script>'; | |
exit; | |
} | |
} | |
add_action( 'paytium_after_pt_show_payment_details', 'paytium_redirect_after_payment', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment